-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
46 lines (46 loc) · 1.48 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
{
"root": true,
"extends": "airbnb",
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true
},
"rules": {
"semi": ["error", "always"],
"indent": ["error", 4, {"SwitchCase": 1}],
"curly": ["error", "all"],
"object-curly-spacing": ["error", "never"],
"array-bracket-spacing": ["error", "never"],
"func-style": ["error", "declaration"],
"arrow-parens": ["error", "as-needed"],
"padded-blocks": ["error", {
"blocks": "never",
"switches": "never"
}],
"quotes": ["error", "single"],
"jsx-quotes": ["error", "prefer-single"],
"react/jsx-indent": ["error", 4],
"react/jsx-indent-props": ["error", 4],
"react/sort-comp": ["error", {
"order": [
"static-methods",
"lifecycle",
"render",
"everything-else"
]
}],
"react/destructuring-assignment": "off",
"react/jsx-wrap-multilines": "off",
"react/jsx-one-expression-per-line": "off",
"react/jsx-closing-tag-location": "off",
"react/require-default-props": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"arrow-body-style": "off",
"no-else-return": "off",
"no-console": "off",
"global-require": "off"
}
}