-
Notifications
You must be signed in to change notification settings - Fork 9
/
.eslintrc.json
43 lines (39 loc) · 1.33 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
{
"env": {
"browser": true,
"webextensions": true,
"jquery": true,
"es6": true
},
"extends": "eslint:recommended",
"rules": {
// Allow console
"no-console": "off",
// Style, indent/whitespace
"indent": ["warn", 2, {"SwitchCase": 1}],
"no-trailing-spaces": "warn",
"eol-last": "warn",
"no-multiple-empty-lines": "warn",
// Style, spacing
"space-unary-ops": ["warn", {"words": true, "nonwords": false}],
"space-infix-ops": "warn",
"keyword-spacing": "warn",
"space-before-blocks": ["warn", "always"],
"operator-linebreak": "warn",
"space-before-function-paren": ["warn", "never"],
"space-in-parens": ["warn", "never"],
"array-bracket-spacing": ["warn", "never"],
"no-spaced-func": "warn",
"key-spacing": ["warn", {"beforeColon": false, "afterColon": true}],
"quote-props": ["warn", "as-needed"],
// Style, braces
"brace-style": ["warn", "1tbs", {"allowSingleLine": true}],
"curly": ["warn", "multi-line"],
// Style, misc
"no-with": "warn",
"dot-notation": "warn",
// "quotes": ["warn", "double", {"avoidEscape": true}], // Enforce later
"semi": ["warn", "always"],
"no-var": "warn"
}
}