-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.js
65 lines (59 loc) · 1.57 KB
/
.eslintrc.js
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
56
57
58
59
60
61
62
63
64
65
module.exports = {
"root":true,
"env": {
"es6": true,
"browser": true,
"commonjs": true,
},
"extends": [
"eslint:recommended",
],
"parserOptions": {
"sourceType": "module"
},
"rules": {
"no-cond-assign": 0,
"indent-legacy": 0,
"indent": [2, 4, {"SwitchCase": 1}],
"linebreak-style": [2, "unix"],
"space-infix-ops": 2,
"comma-style": 2,
"comma-spacing": 2,
"key-spacing": 2,
"keyword-spacing": 2,
"no-multi-spaces": 2,
"no-trailing-spaces": 2,
"space-unary-ops": 2,
"space-in-parens": 2,
"space-before-blocks": 2,
"template-curly-spacing": 2,
"quotes": [2, "single", {"avoidEscape": true}],
"eqeqeq": [0, "smart"],
"semi": [2, "always"],
"brace-style": [2, "1tbs", {"allowSingleLine": true}],
"no-lone-blocks": 2,
"no-extend-native": 2,
"no-unused-vars": [2, {"vars": "local", "args": "none"}],
"no-empty": [0, {"allowEmptyCatch": true}],
"no-duplicate-imports": 2,
"no-array-constructor": 2,
"no-multiple-empty-lines": [2, {"max": 1}],
"no-template-curly-in-string": 2,
"no-useless-escape": 0
}
};
/*
implicit:
"rules": {
"no-undef": 2,
"strict": 0,
"new-cap": 0,
"camelcase": 0,
"no-underscore-dangle": 0,
"no-new": 0,
"no-alert": 0,
"no-use-before-define": 0,
"consistent-return": 0,
"no-shadow": 0,
}
*/