-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
57 lines (57 loc) · 1.83 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
55
56
57
{
"env": {
"browser": true,
"es6": true,
"node": true,
"mocha": true,
"jasmine": true,
"phantomjs": true,
"qunit": true,
"jquery": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"array-bracket-spacing": "warn",
"arrow-parens": ["warn", "as-needed"],
"block-spacing": "warn",
"brace-style": ["warn", "1tbs", { "allowSingleLine": true }],
"camelcase": ["warn", { "properties": "never" }],
"comma-dangle": ["warn", "only-multiline"],
"comma-spacing" : "warn",
"default-case": "warn",
"eol-last": "error",
"eqeqeq": ["warn", "smart"],
"guard-for-in": "warn",
"indent": ["error", 2, { "SwitchCase": 1 }],
"key-spacing": "warn",
"keyword-spacing": "warn",
"lines-between-class-members": "warn",
"multiline-ternary": ["warn", "always-multiline"],
"no-console": "warn",
"no-else-return": ["warn", { "allowElseIf": true }],
"no-eq-null": "warn",
"no-lonely-if": "warn",
"no-loop-func": "error",
"no-multi-spaces": ["warn", { "ignoreEOLComments": true }],
"no-multiple-empty-lines": ["warn", { "max": 1 }],
"no-return-assign": "warn",
"no-self-compare": "warn",
"no-trailing-spaces": "warn",
"no-undef-init": "warn",
"no-unneeded-ternary": ["error", { "defaultAssignment": false }],
"no-use-before-define": ["warn", "nofunc"],
"object-curly-spacing": ["warn", "always"],
"prefer-promise-reject-errors": "warn",
"radix": "warn",
"semi": "error",
"sort-imports": ["warn", { "memberSyntaxSortOrder": ["none", "all", "single", "multiple"] }],
"space-before-blocks": "warn",
"space-before-function-paren": ["warn", "never"],
"space-infix-ops": "warn",
"yoda": ["warn", "never", { "exceptRange": true }]
}
}