forked from uikit/uikit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
60 lines (60 loc) · 2.04 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
module.exports = {
"root":true,
"env": {
"es6": true,
"browser": true,
"commonjs": true,
},
"extends": [
"eslint:recommended",
],
"parserOptions": {
"sourceType": "module"
},
"globals": {
"BUNDLED": true,
"VERSION": true,
"ICONS": []
},
"rules": {
"arrow-parens": ["error", "as-needed"],
"brace-style": ["error", "1tbs", {"allowSingleLine": true}],
"comma-dangle": ["error", "never"],
"comma-spacing": "error",
"comma-style": "error",
"eqeqeq": ["error", "smart"],
"eol-last": "error",
"indent": "off",
"indent-legacy": ["error", 4, {"SwitchCase": 1}],
"key-spacing": "error",
"keyword-spacing": "error",
"linebreak-style": ["error", "unix"],
"no-array-constructor": "error",
"no-case-declarations": "warn",
"no-console": "off",
"no-duplicate-imports": "error",
"no-empty": ["error", {"allowEmptyCatch": true}],
"no-extend-native": "error",
"no-lone-blocks": "error",
"no-lonely-if": "error",
"no-multi-spaces": "error",
"no-multiple-empty-lines": ["error", {"max": 2, "maxEOF": 1, "maxBOF": 0}],
"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-before-function-paren": ["error", {"anonymous": "always", "named": "never", "asyncArrow": "always"}],
"space-in-parens": "error",
"space-infix-ops": "error",
"space-unary-ops": "error",
"spaced-comment": "error",
"template-curly-spacing": "error",
}
};