forked from uikit/uikit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
74 lines (68 loc) · 1.84 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
66
67
68
69
70
71
72
73
74
module.exports = {
"root":true,
"env": {
"es6": true,
"browser": true,
"commonjs": true,
},
"extends": [
"eslint:recommended",
],
"parserOptions": {
"sourceType": "module"
},
"globals": {
"BUNDLED": true,
"VERSION": true
},
"rules": {
"brace-style": [2, "1tbs", {"allowSingleLine": true}],
"comma-spacing": 2,
"comma-style": 2,
"eqeqeq": [0, "smart"],
"indent": [2, 4, {"SwitchCase": 1}],
"indent-legacy": 0,
"key-spacing": 2,
"keyword-spacing": 2,
"linebreak-style": [2, "unix"],
"no-array-constructor": 2,
"no-cond-assign": 0,
"no-duplicate-imports": 2,
"no-empty": [0, {"allowEmptyCatch": true}],
"no-extend-native": 2,
"no-lone-blocks": 2,
"no-multi-spaces": 2,
"no-multiple-empty-lines": [2, {"max": 1}],
"no-template-curly-in-string": 2,
"no-trailing-spaces": 2,
"no-unused-vars": [2, {"vars": "local", "args": "none"}],
"no-useless-escape": 0,
"quotes": [2, "single", {"avoidEscape": true}],
"semi": [2, "always"],
"space-before-blocks": 2,
"space-in-parens": 2,
"space-infix-ops": 2,
"space-unary-ops": 2,
"template-curly-spacing": 2,
// "sort-imports": ["error", {
// "ignoreCase": true,
// "ignoreMemberSort": false,
// "memberSyntaxSortOrder": ["none", "single", "all", "multiple"]
// }]
}
};
/*
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,
}
*/