-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
46 lines (46 loc) · 1.3 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
44
45
46
{
"env": {
"browser": true,
"node": true
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"react"
],
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"brace-style": ["warn", "1tbs", { "allowSingleLine": true }],
"curly": ["error", "all"],
"eol-last": ["warn", "always"],
"indent": ["error", 2, { "SwitchCase": 1 }],
"key-spacing": ["warn", { "beforeColon": false, "afterColon": true, "mode": "strict" }],
"keyword-spacing": ["error", { "before": true, "after": true }],
"linebreak-style": ["warn", "unix"],
"no-multiple-empty-lines": ["warn", { "max": 1 }],
"no-tabs": "warn",
"no-trailing-spaces": "warn",
"no-unused-vars": ["warn", { "argsIgnorePattern": "^_$" }],
"object-curly-spacing": ["warn", "always"],
"react/jsx-no-bind": "error",
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/no-string-refs": "error",
"semi": ["error", "always"],
"space-before-blocks": ["error", "always"],
"space-before-function-paren": ["error", { "anonymous": "never", "named": "never", "asyncArrow": "always" }]
},
"extends": [
"plugin:react-hooks/recommended"
]
}