-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc
43 lines (43 loc) · 1.4 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
38
39
40
41
42
43
{
"extends": [
"react-app",
"eslint:recommended",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended"
],
"rules": {
"no-console": ["warn", { "allow": ["warn", "error"] }],
"jsx-quotes": ["error", "prefer-double"],
"quotes": ["error", "double", "avoid-escape"],
"dot-location": ["error", "property"],
"no-multi-spaces": "error",
"array-bracket-spacing": ["error", "never"],
"semi": ["error", "always"],
"semi-style": ["error", "last"],
"space-in-parens": ["error", "never"],
"array-element-newline": ["error", "consistent"],
"object-curly-spacing": ["error", "always"],
"comma-spacing": ["error", { "before": false, "after": true }],
"comma-dangle": ["error", "never"],
"newline-per-chained-call": ["error", { "ignoreChainWithDepth": 2 }],
"key-spacing": [
"error",
{
"beforeColon": false,
"afterColon": true
}
],
"react/require-default-props": [2, { "forbidDefaultForRequired": true }],
"react/prop-types": [
2,
{
"ignore": ["className", "children"]
}
],
"react/jsx-uses-react": ["error"],
"react/jsx-uses-vars": ["error"],
"react/react-in-jsx-scope": ["error"],
"no-trailing-spaces": "error",
"react/jsx-first-prop-new-line": ["warn", "multiline-multiprop"]
}
}