-
-
Notifications
You must be signed in to change notification settings - Fork 41
/
.eslintrc.js
53 lines (53 loc) · 1.55 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
module.exports = {
"env": {
"browser": true,
"es6": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
"indent": [
"error",
2,
{
"SwitchCase": 1,
},
],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"eqeqeq": ["error", "always"],
"dot-location": ["error", "property"],
"dot-notation": ["warn"],
"no-else-return": ["warn"],
"no-var": ["error"],
"arrow-body-style": ["warn"],
"object-shorthand": ["warn"],
"prefer-arrow-callback": ["warn"],
"prefer-const": ["warn"],
"prefer-template": ["warn"],
"comma-dangle": ["error", "always-multiline"],
"array-bracket-newline": ["warn", "consistent"],
"array-bracket-spacing": ["warn", "never"],
"block-spacing": ["warn", "always"],
"brace-style": ["warn", "1tbs"],
"camelcase": ["warn"],
"no-extra-parens": ["warn"],
"no-template-curly-in-string": ["warn"],
"valid-jsdoc": [
"error",
{
"requireReturn": false,
},
],
"array-callback-return": ["error"],
"block-scoped-var": ["error"],
"consistent-return": ["error"],
"curly": ["warn"],
"no-implicit-globals": ["error"],
"no-useless-concat": ["warn"],
"radix": ["error", "always"],
}
};