-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
.eslintrc
54 lines (54 loc) · 1.61 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
45
46
47
48
49
50
51
52
53
54
{
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"rules":{
// 0 - "off"; 1 - "warn"; 2 - "error"
"camelcase": "warn",
"comma-dangle": "warn",
"quotes": ["warn", "single"],
"no-compare-neg-zero": "warn",
"no-console": "off",
"no-dupe-args": "warn",
"no-dupe-keys": "warn",
"no-duplicate-case": "warn",
"no-empty": "warn",
"no-extra-semi": "warn",
"no-irregular-whitespace": "warn",
"no-regex-spaces": "warn",
"no-unreachable": "warn",
"block-scoped-var": "warn",
"eqeqeq": "warn",
"no-alert": "warn",
"no-empty-function": "warn",
"no-multi-spaces": "warn",
"no-multi-str": "warn",
"no-redeclare": "warn",
"no-useless-return": "warn",
"vars-on-top": "warn",
"strict": ["error", "global"],
"no-unused-vars": "warn",
"no-use-before-define": "warn",
"array-bracket-spacing": ["error", "never"],
"block-spacing": "warn",
"brace-style": "error",
//"comma-dangle": ["error", "never"],
"comma-spacing": ["error", { "before": false, "after": true }],
"comma-style": ["error", "last"],
"computed-property-spacing": ["error", "never"],
"eol-last": ["warn", "always"],
"indent": ["warn", 2],
"no-mixed-spaces-and-tabs": "error",
"no-multiple-empty-lines": "error",
"no-trailing-spaces": "warn",
"no-unneeded-ternary": "warn",
"no-whitespace-before-property": "error",
"sort-keys": "warn",
"sort-vars": "warn",
"spaced-comment": ["warn", "always"],
"arrow-spacing": "warn",
"no-var": "warn",
"sort-imports": ["warn", { "ignoreCase": true }]
}
}