-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
47 lines (45 loc) · 1.43 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
47
{
"parserOptions": {
"ecmaVersion": 12,
"ecmaFeatures": "impliedStrict"
},
"env": {
"node": true,
"es6": true,
"browser": true,
},
"rules": {
"max-len": ["error", 120, 2],
"quotes": ["error", "single"],
"complexity": ["warn", 10],
"curly": "error",
"default-case": "error",
"no-lonely-if": "error",
"no-multiple-empty-lines": ["warn", { "max": 1} ],
"no-nested-ternary": "error",
"quote-props": ["error", "as-needed"],
"keyword-spacing": ["warn"],
"space-before-blocks": "warn",
"space-before-function-paren": ["warn", {"anonymous": "never", "named": "never", "asyncArrow": "always"}],
"object-curly-spacing": ["warn", "never"],
"array-bracket-spacing": ["warn", "never"],
"computed-property-spacing": ["warn", "never"],
"space-in-parens": ["warn", "never"],
"no-underscore-dangle": ["off"],
"no-extra-parens": "error",
"indent": ["error", 2, {"SwitchCase": 1}],
"consistent-this": ["warn", "that"],
"operator-assignment": ["error", "always"],
"semi": ["error", "always"],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"no-eq-null": "error",
"no-floating-decimal": "error",
"no-self-compare": "error",
"no-throw-literal": "error",
"radix": "error",
"yoda": ["warn", "never"],
"comma-dangle": ["error", "always-multiline"],
"strict": ["error", "never"],
"no-process-exit": ["off"],
}
}