-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
40 lines (40 loc) · 1.09 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
{
"plugins": ["react", "react-hooks"],
"env": {
"node": true,
"commonjs": true,
"es6": true,
"jest": true
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 9,
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"max-len": [1, { "code": 120, "tabWidth": 4, "ignoreUrls": true, "ignoreComments": true, "ignoreStrings": true }],
"semi": [2, "never"],
"quotes": [2, "single"],
"comma-dangle": [2, "never"],
"object-curly-spacing": [2, "always"],
"indent": [2, 2, { "SwitchCase": 1 }],
"capitalized-comments": [2, "never"],
"spaced-comment": [2, "always"],
"multiline-comment-style": [2, "starred-block"],
"no-multiple-empty-lines": [2, { "max": 2 }],
"no-mixed-spaces-and-tabs": 2,
"no-trailing-spaces": 2,
"no-var": 2,
"no-redeclare": 2,
"no-const-assign": 2,
"no-self-assign": 2,
"no-unused-vars": [2, { "args": "none" }],
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react-hooks/rules-of-hooks": 2,
"react-hooks/exhaustive-deps": 1
}
}