-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy path.eslintrc.json
55 lines (55 loc) · 1.64 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
{
"root": true,
"env": {
"browser": true,
"es6": true,
"webextensions": true
},
"parserOptions": {
"ecmaVersion": 2017
},
"extends": "eslint:recommended",
"rules": {
"indent": [
"warn",
4,
{"SwitchCase": 1}
],
"linebreak-style": [
"warn",
"windows"
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always",
{"omitLastInOneLineBlock": true}
],
"semi-spacing": "error",
"no-prototype-builtins": "off",
"no-redeclare": ["error", {"builtinGlobals": false}],
"no-trailing-spaces": "error",
"no-tabs": "error",
"no-unused-vars": ["error", {"vars": "local"}],
"no-multi-spaces": ["warn", { "ignoreEOLComments": false }],
"space-infix-ops": "warn",
"space-before-blocks": "warn",
"key-spacing": "warn",
"block-spacing": "warn",
"array-bracket-spacing": "warn",
"object-curly-spacing": "warn",
"computed-property-spacing": "warn",
"comma-spacing": "warn",
"space-before-function-paren": ["warn", "never"],
"spaced-comment": "warn",
"array-bracket-newline": ["warn", { "multiline": true }],
"object-curly-newline": ["warn", { "multiline": true }],
"object-property-newline": ["warn", { "allowAllPropertiesOnSameLine": true }],
"comma-dangle": "warn",
"comma-style": "error",
"brace-style": ["error", "stroustrup", { "allowSingleLine": true }]
}
}