-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
39 lines (39 loc) · 1.2 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
{
"extends": ["eslint:recommended"],
"parserOptions": {
"sourceType": "module"
},
"env": {
"es6": true,
"browser": true
},
"rules": {
"max-len": [2, 80, 2, {"ignoreComments": false}],
"semi": [2],
"valid-jsdoc": [2],
"curly": [2],
"dot-location": [2, "property"],
"eqeqeq": [2],
"no-else-return": [2],
"no-implicit-coercion": [2],
"no-multi-spaces": [2],
"radix": [2],
"no-shadow": [2],
"no-shadow-restricted-names": [2],
"array-bracket-spacing": ["error", "never"],
"block-spacing": ["error", "never"],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"comma-spacing": ["error", { "before": false, "after": true }],
"eol-last": ["error", "always"],
"func-call-spacing": ["error", "never"],
"indent": ["error", 2],
"key-spacing": ["error", { "afterColon": true, "beforeColon": false }],
"linebreak-style": ["error", "unix"],
"lines-between-class-members": ["error", "always"],
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 1 }],
"no-trailing-spaces": [2],
"no-whitespace-before-property": [2],
"operator-linebreak": ["error", "after"],
"quotes": ["error", "single"],
}
}