-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy path.eslintrc
37 lines (37 loc) · 1.29 KB
/
.eslintrc
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
{
"extends": [
"plugin:prettier/recommended",
"react-app",
"airbnb/hooks",
"plugin:jsx-a11y/recommended",
"plugin:import/errors"
],
"rules": {
"comma-dangle": 0,
"import/namespace": ["error", { "allowComputed": true }],
"import/no-extraneous-dependencies": [
"error",
{ "devDependencies": ["src/utils/test-utils.js", "src/**/*.test.js", "src/setupTests.js"] }
], // don't check helpers for extraneous deps
"jsx-a11y/href-no-hash": 0,
"jsx-a11y/label-has-for": ["error", { "required": { "some": ["nesting", "id"] } }],
"no-console": 0, // allow console.log statements
"no-param-reassign": ["error", { "props": false }],
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }], // allow ++ in for loop expression
"no-underscore-dangle": ["error", { "allow": ["_id"] }], // because mongo
"no-unused-vars": ["error", { "args": "none" }], // don't check function arguments
"no-use-before-define": ["error", "nofunc"],
"prefer-destructuring": ["error", { "AssignmentExpression": { "array": false, "object": false } }],
"semi": ["error", "always"]
},
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"node": {
"moduleDirectory": ["node_modules", "src"]
}
}
}
}