-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
59 lines (59 loc) · 1.24 KB
/
.eslintrc.js
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
module.exports = {
env: {
jest: true,
browser: true
},
parser: '@typescript-eslint/parser',
extends: [
'airbnb',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
],
plugins: [
'react-hooks'
],
parserOptions: {
ecmaVersion: 2019,
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
},
rules: {
'@typescript-eslint/ban-ts-ignore': 0,
'@typescript-eslint/no-explicit-any': 0,
'react/jsx-filename-extension': [
1,
{ extensions: ['.js', '.jsx', '.tsx', '.ts'] }
],
'import/extensions': 0,
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
'no-plusplus': 0,
'react/jsx-max-props-per-line': 1,
'react/jsx-props-no-spreading': 0,
'react/destructuring-assignment': 0,
},
settings: {
react: {
version: 'detect'
},
'import/extensions': ['.js', '.jsx', '.ts', '.tsx'],
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx']
},
'import/resolver': {
node: {
paths: ['src'],
extensions: ['.js', '.jsx', '.ts', '.tsx']
}
}
},
overrides: [
{
files: ['**/*.tsx'],
rules: {
'react/prop-types': 'off',
}
}
]
};