-
Notifications
You must be signed in to change notification settings - Fork 42
/
.eslintrc.json
40 lines (40 loc) · 1.25 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
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"webextensions": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 8
},
"rules": {
"indent": ["error", 4],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "double", {"allowTemplateLiterals": true}],
"semi": ["error", "always"],
"brace-style": ["error", "1tbs", {"allowSingleLine": true}],
"comma-style": "error",
"comma-dangle": ["error", "only-multiline"],
"curly": ["error", "multi-line"],
"camelcase": "warn",
"eqeqeq": "error",
"dot-notation": "error",
"no-unused-vars": 1,
"no-spaced-func": "error",
"space-before-blocks": "error",
"space-before-function-paren": ["error", {"anonymous": "always", "named": "never"}],
"space-in-parens": "error",
"space-infix-ops": "error",
"space-unary-ops": "error",
"keyword-spacing": "error",
"block-spacing": "error",
"key-spacing": "error",
"comma-spacing": "error",
"no-trailing-spaces": "error",
"eol-last": "error",
"no-var": "error"
}
}