-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
49 lines (49 loc) · 1.29 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
{
"parser": "@babel/eslint-parser",
"env": {
"browser": true,
"jest":true
},
"extends": [
"eslint:recommended"
],
"plugins": [
"babel"
],
"rules": {
"keyword-spacing": ["warn"],
"key-spacing": ["warn"],
"max-len": ["warn", 120, {
"ignoreComments": true ,
"ignoreStrings": true,
"ignoreUrls": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}],
"object-curly-spacing": ["warn", "always"],
"arrow-parens": "off",
"space-in-parens": "off",
"no-case-declarations": ["warn"],
"no-mixed-operators": "off",
"eqeqeq": "off",
"no-debugger": "warn",
"no-empty": "off",
"indent": ["error", 2, {"SwitchCase": 1}],
"quotes": ["error", "single"],
"semi": ["error", "always", {"omitLastInOneLineBlock": true}],
"no-unused-vars": ["warn"],
"no-const-assign": ["error"],
"no-console": [ "warn", {
"allow": [
"warn",
"error",
"debug"
]
}],
"comma-dangle": ["error", "only-multiline"],
"callback-return": "error"
},
"globals": {
"module": true
}
}