-
Notifications
You must be signed in to change notification settings - Fork 39
/
.eslintrc
67 lines (65 loc) · 1.99 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
"root": true,
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "script",
"ecmaFeatures": {
"impliedStrict": true
}
},
"env": {
"browser": true,
"node": false,
"es6": true
},
"extends": [
"eslint:recommended"
],
"plugins": [],
"rules": {
"no-tabs": "warn",
"indent": ["warn", 2, { "SwitchCase": 1 }],
"eol-last": "off",
"no-undef": "warn",
"semi": ["error", "always"],
"no-console": "off",
"no-useless-escape": "off",
"no-empty": "off",
"camelcase": ["warn", { "properties": "never" }],
"no-var": ["error"],
"prefer-const": ["error"],
"block-spacing": ["warn", "always"],
"comma-spacing": ["warn", { "before": false, "after": true }],
"comma-style": ["warn", "last"],
"comma-dangle": ["warn", "never"],
"curly": ["warn"],
"brace-style": ["warn", "1tbs", { "allowSingleLine": true }],
"no-mixed-operators": ["warn", { "allowSamePrecedence": true }],
"operator-linebreak": ["warn", "after"],
"object-curly-newline": ["warn", { "consistent": true }],
"object-curly-spacing": ["warn", "always"],
"array-bracket-newline": ["warn", "consistent"],
"array-element-newline": ["warn", "consistent"],
"semi-spacing": "warn",
"space-before-blocks": ["warn", "always"],
"space-infix-ops": ["warn", { "int32Hint": false }],
"space-unary-ops": "warn",
"no-mixed-spaces-and-tabs": "warn",
"no-whitespace-before-property": "warn",
"switch-colon-spacing": "error",
"key-spacing": ["warn"],
"keyword-spacing": ["warn", { "before": true }],
"space-before-function-paren": [
"warn",
{ "anonymous": "always", "named": "never", "asyncArrow": "always" }
],
"no-unused-vars": ["error", { "vars": "all", "args": "none" }],
"no-unsafe-optional-chaining": "error",
"quotes": ["warn", "single", { "avoidEscape": true }],
"no-param-reassign": "error",
"no-prototype-builtins": "off"
},
"globals": {
"chrome": "readonly"
}
}