-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
44 lines (44 loc) · 1.54 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
40
41
42
43
44
{
"env": {
"commonjs": true,
"es6": true,
"browser": true,
"node": true,
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2017,
"ecmaFeatures": {
"modules": true,
},
},
"rules": {
"array-bracket-spacing": ["warn", "never"],
"brace-style": "warn",
"camelcase": ["warn", {"properties": "never"}],
"comma-dangle": ["off"],
"comma-spacing": ["warn", {"before": false, "after": true}],
"curly": ["warn"],
"eol-last": ["error"],
"eqeqeq": ["warn", "smart"],
"indent": ["warn", 2, {"SwitchCase": 1}],
"key-spacing": ["warn"],
"linebreak-style": ["error", "unix"],
"no-console": ["warn", {"allow": ["warn", "error"]}],
"no-empty": ["warn"],
"no-multi-spaces": ["warn"],
"no-redeclare": ["warn"],
"no-trailing-spaces": ["warn"],
"no-unused-vars": ["warn", {"args": "none"}],
"no-use-before-define": ["warn", "nofunc"],
"object-curly-spacing": ["warn", "always"],
"quotes": ["off", "double"],
"semi": ["error", "always"],
"semi-spacing": ["warn", {"before": false, "after": true}],
"space-before-blocks": ["warn", {"functions": "never", "keywords": "never", "classes": "always"}],
"space-before-function-paren": ["warn", {"anonymous": "never", "named": "never"}],
"space-infix-ops": ["warn"],
"space-in-parens": ["warn", "never"]
},
}