forked from uikit/uikit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
55 lines (54 loc) · 1.72 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
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": ["error", "1tbs", {"allowSingleLine": true}],
"comma-spacing": "error",
"comma-style": "error",
"eqeqeq": ["off", "smart"],
"indent": "off",
"indent-legacy": ["error", 4, {"SwitchCase": 1}],
"key-spacing": "error",
"keyword-spacing": "error",
"linebreak-style": ["error", "unix"],
"no-array-constructor": "error",
"no-console": "off",
"no-duplicate-imports": "error",
"no-empty": ["error", {"allowEmptyCatch": true}],
"no-extend-native": "error",
"no-case-declarations": "warn",
"no-lone-blocks": "error",
"no-lonely-if": "error",
"no-multi-spaces": "error",
"no-multiple-empty-lines": "error",
"no-template-curly-in-string": "error",
"no-trailing-spaces": "error",
"no-unused-vars": ["error", {"vars": "local", "args": "none"}],
"no-var": "error",
"object-curly-spacing": "error",
"object-shorthand": "error",
"prefer-const": ["error", {"destructuring": "all"}],
"prefer-destructuring": "warn",
"quotes": ["error", "single", {"avoidEscape": true}],
"semi": ["error", "always"],
"space-before-blocks": "error",
"space-in-parens": "error",
"space-infix-ops": "error",
"space-unary-ops": "error",
"template-curly-spacing": "error"
}
};