-
Notifications
You must be signed in to change notification settings - Fork 28
/
.eslintrc.json
38 lines (34 loc) · 899 Bytes
/
.eslintrc.json
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
{
"root": true,
"env": {
"node": true,
"es6": true
},
"extends": ["airbnb", "prettier", "react-app", "plugin:mocha/recommended"],
"parserOptions": {
"ecmaVersion": 8,
"requireConfigFile": false,
"sourceType": "module",
"babelOptions": {
"presets": ["@babel/preset-react"]
}
},
"plugins": ["simple-import-sort", "mocha"],
"settings": {},
"rules": {
// Prefer non-default exports
"import/no-default-export": "error",
"import/prefer-default-export": "off",
// Auto-sort imports
"sort-imports": "off",
"import/order": "off",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
// Allow props spreading
"react/jsx-props-no-spreading": "off",
// disable prop-types
"react/prop-types": "off",
// disable form label
"jsx-a11y/label-has-associated-control": "off"
}
}