-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
33 lines (32 loc) · 882 Bytes
/
.eslintrc.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* eslint-disable @typescript-eslint/no-var-requires */
const packageJson = require('./package.json');
module.exports = {
extends: [require.resolve('js2me-eslint-config')],
rules: {
'import/no-unresolved': [
'error',
{ ignore: Object.keys(packageJson.peerDependencies) },
],
},
overrides: [
{
files: [
"*.test.ts",
"*.test.tsx"
],
rules: {
'sonarjs/no-identical-functions': 'off',
'sonarjs/no-nested-functions': 'off',
'unicorn/consistent-function-scoping': 'off',
'unicorn/no-this-assignment': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-this-alias': 'off',
'react-hooks/rules-of-hooks': 'off',
'sonarjs/use-type-alias': 'off'
},
parserOptions: {
project: 'tsconfig.test.json',
},
}
]
};