-
Notifications
You must be signed in to change notification settings - Fork 44
/
.eslintrc.cjs
37 lines (37 loc) · 1.14 KB
/
.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
34
35
36
37
module.exports = {
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
],
plugins: ['@typescript-eslint', 'n'],
parser: '@typescript-eslint/parser',
parserOptions: {
suppressDeprecatedPropertyWarnings: true,
},
// indicates this is the parent eslint so eslint will stop searching further up for eslint configs
root: true,
settings: {
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx'],
},
'import/resolver': {
node: {},
typescript: {
project: [
'./tsconfig.json',
'./packages/*/tsconfig.json',
'./packages/*/tsconfig.test.json',
],
},
},
},
rules: {
// this rule has not been updated to ESLint 8 so it is incompatible with our ESLint setup
// Error: Rules with suggestions must set the `meta.hasSuggestions` property to `true`. `meta.docs.suggestion` is ignored by ESLint.
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
'n/no-process-exit': 'error',
},
};