-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy path.eslintrc.js
41 lines (40 loc) · 1.01 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
const path = require('path');
const srcPath = path.resolve(__dirname, 'src');
module.exports = {
"extends": "airbnb",
"parser": "babel-eslint",
"plugins": [
"react-hooks"
],
"rules": {
"strict": 0,
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"import/no-extraneous-dependencies": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/label-has-for": [ 2, {
"components": [ "Label" ],
"required": {
"every": [ "id" ]
},
"allowChildren": true
}],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
},
"settings": {
"import/resolver": {
"node": {
"moduleDirectory": ["node_modules", "src", "sass", "test"]
}
}
},
"env": {
"browser": true,
"node": true,
"jest": true
},
"globals": {
"cy": true,
"Cypress": true
}
};