-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
51 lines (50 loc) · 1.42 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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
"env": {
"browser": true,
},
plugins: [
"@typescript-eslint",
"jest"
],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
},
extends: [
"react-app",
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
"plugin:react/recommended",
"plugin:jest/recommended",
"plugin:jest/style",
"airbnb",
"airbnb/hooks"
],
"rules": {
'react/jsx-wrap-multilines': 'off',
'react/jsx-indent': 'off',
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"jest/no-disabled-tests": "warn",
"jest/no-focused-tests": "error",
"jest/no-identical-title": "error",
"jest/prefer-to-have-length": "warn",
"jest/valid-expect": "error",
"react/jsx-filename-extension": [1, { "extensions": [".tsx"] }],
"import/prefer-default-export": 0,
'import/named': 'off',
'import/export': 'off',
'import/extensions':'off',
"no-undef": "error",
"no-global-assign":"error",
"no-implicit-globals": "error",
"no-this-before-super":'error',
"no-global-assign":"error",
"@typescript-eslint/no-explicit-any":0
}
};