-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.prod.json
64 lines (64 loc) · 1.92 KB
/
.eslintrc.prod.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
60
61
62
63
64
{
"extends": [
"eslint:recommended"
],
"env": {
"browser": true
},
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module"
},
"rules": {
"indent": ["error", 4, { "SwitchCase": 1, "MemberExpression": 1 }],
"no-trailing-spaces": "error",
"no-console": [
"error",
{ "allow": ["warn", "error"] }
],
"no-fallthrough": "off",
"no-case-declarations": "off",
"space-before-function-paren": "error",
"spaced-comment": "error",
"arrow-spacing": "error",
"keyword-spacing": "error",
"semi": ["error", "always"],
"dot-location": ["error", "property"],
"dot-notation": "error",
"no-alert": "error",
"eqeqeq": ["error", "always"],
"no-floating-decimal": "error",
"no-global-assign": "error",
"no-multi-spaces": "error",
"no-useless-return": "error",
"no-undef-init": "warn",
"no-use-before-define": ["error", { "functions": false }],
"array-bracket-newline": ["error", { "multiline": true, "minItems": 1 }],
"brace-style": ["error", "1tbs"],
"comma-dangle": [ "error", "always-multiline" ],
"comma-spacing": "error",
"comma-style": "error",
"eol-last": "error",
"func-call-spacing": "error",
"jsx-quotes": ["error", "prefer-double"],
"linebreak-style": "warn",
"lines-around-comment": "warn",
"max-depth": ["error", 2],
"max-statements-per-line": "error",
"newline-per-chained-call": "error",
"no-lonely-if": "error",
"no-mixed-operators": "warn",
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 0, "maxBOF": 0 }],
"no-tabs": "warn",
"space-before-blocks": "error",
"space-infix-ops": "error",
"space-in-parens": "error",
"switch-colon-spacing": "error",
"arrow-body-style": "error",
"no-duplicate-imports": "warn",
"no-useless-computed-key": "warn",
"no-var": "error",
"arrow-parens": ["error", "as-needed"],
"curly": "error"
}
}