-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
46 lines (46 loc) · 1.19 KB
/
.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
39
40
41
42
43
44
45
46
{
"extends": [
"eslint:recommended",
"plugin:react/all",
"plugin:jsx-a11y/strict",
"plugin:import/errors",
"plugin:jest/all"
],
"parser": "babel-eslint",
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx"]
}
},
"react": {
"version": "detect"
}
},
"env": {
"browser": true,
"es6": true,
"jest": true,
"node": true,
"browser": true
},
"rules": {
"jest/no-hooks": "off",
"jest/prefer-expect-assertions": "off",
"jest/prefer-inline-snapshots": "off",
"jsx-a11y/label-has-for": "off",
"no-var": "error",
"react/forbid-component-props": "off",
"react/jsx-curly-brace-presence": [true, { "props": "never", "children": "always" }],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/jsx-fragments": "off",
"react/jsx-indent": [2, 2],
"react/jsx-indent-props": [2, 2],
"react/jsx-max-depth": "off",
"react/jsx-one-expression-per-line": [true, { "allow": "literal" }],
"react/jsx-props-no-spreading": "off",
"react/no-set-state": "off",
"react/static-property-placement": "off",
"semi": ["error", "never"]
}
}