-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
60 lines (53 loc) · 1.57 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
47
48
49
50
51
52
53
54
55
56
57
58
59
{
"env": {
"browser": true
},
"extends": [
"plugin:react/recommended"
],
"plugins": [
"react"
],
"rules": {
"arrow-body-style": ["off"],
"class-methods-use-this": ["off"],
"comma-dangle": ["warn"],
"dot-notation": ["off"],
"eqeqeq": ["error", "always"],
"import/extensions": ["off"],
"import/prefer-default-export": ["off"],
"indent": ["warn", 4],
"linebreak-style": ["off"],
"max-classes-per-file": ["off"],
"max-len": ["warn", { "code": 100, "ignoreUrls": true }],
"no-console": ["off"],
"no-multi-spaces": ["error", { "ignoreEOLComments": true }],
"no-multiple-empty-lines": ["off"],
"no-param-reassign": ["off"],
"no-plusplus": ["off"],
"no-restricted-syntax": ["off"],
"no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
"no-useless-constructor": ["off"],
"object-curly-spacing": ["warn"],
"object-shorthand": ["off"],
"operator-linebreak": ["warn"],
"prefer-destructuring": ["off"],
"prefer-template": ["off"],
"quote-props": ["error", "consistent"],
"quotes": ["warn"],
"radix": ["off"],
"react/no-unescaped-entities": [ "error", { "forbid": [">", "}"] }],
"semi": ["error", "always"]
},
"settings": {
"react": {
"version": "detect"
}
},
"overrides": [
{
"files": [ "**/*.test.js" ],
"env": { "jest": true }
}
]
}