-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
59 lines (59 loc) · 1.58 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
{
"parserOptions": {
"ecmaVersion": 2017
},
"env": {
"browser": true,
"es6": true,
"webextensions": true
},
"rules": {
"array-bracket-spacing": ["error", "always"],
"block-scoped-var": "error",
"brace-style": "error",
"camelcase": "error",
"comma-dangle": ["error", "always-multiline"],
"computed-property-spacing": ["error", "never"],
"curly": "error",
"eol-last": "error",
"eqeqeq": ["error", "smart"],
"indent": [
"error",
2,
{
"SwitchCase": 1
}
],
"keyword-spacing": ["error", {"before": true, "after": true}],
"max-depth": ["error", 5],
"max-len": ["error", 120],
"max-statements": ["error", 30],
"new-cap": "off",
"no-caller": "error",
"no-debugger": "error",
"no-else-return": "error",
"no-extend-native": "error",
"no-mixed-spaces-and-tabs": "error",
"no-trailing-spaces": "error",
"no-redeclare": "error",
"no-undef": "error",
"no-unused-vars": ["error", {"argsIgnorePattern": "next"}],
"no-use-before-define": ["error", "nofunc"],
"object-curly-spacing": ["error", "always"],
"object-shorthand": ["error", "always"],
"prefer-arrow-callback": "error",
"prefer-const": "error",
"quotes": ["error", "single", "avoid-escape"],
"semi": ["error", "always"],
"space-before-blocks": "error",
"space-before-function-paren": [
"error",
{
"anonymous": "ignore",
"named": "never"
}
],
"space-unary-ops": ["error", {"words": true, "nonwords": false}],
"spaced-comment": "error"
}
}