-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
90 lines (90 loc) · 2.52 KB
/
.eslintrc.json
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{
"root": true,
"parserOptions": {
"ecmaVersion": 9,
"sourceType": "module"
},
"env": {
"browser": false,
"es6": true
},
"rules": {
"array-bracket-spacing": ["error", "always"],
"array-callback-return": "error",
"block-spacing": ["error", "always"],
"brace-style": ["error", "1tbs"],
"capitalized-comments": ["error", "always", { "ignoreInlineComments": true }],
"class-methods-use-this": "off",
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"functions": "ignore"
}],
"comma-spacing": ["error", {
"after": true
}],
"comma-style": "error",
"computed-property-spacing": ["error", "never"],
"constructor-super": "error",
"curly": ["error", "all"],
"eol-last": "error",
"generator-star-spacing": ["error", {
"before": true,
"after": true
}],
"key-spacing": ["error", {
"beforeColon": false,
"afterColon": true
}],
"indent": ["error", 4, {
"SwitchCase": 1
}],
"init-declarations": "off",
"new-parens": "error",
"no-caller": "error",
"no-case-declarations": "error",
"no-dupe-class-members": "error",
"no-duplicate-imports": "error",
"no-else-return": "warn",
"no-fallthrough": "warn",
"no-implicit-globals": "error",
"no-iterator": "error",
"no-mixed-spaces-and-tabs": "error",
"no-multi-spaces": "error",
"no-multiple-empty-lines": "error",
"no-new": "error",
"no-new-symbol": "error",
"no-new-wrappers": "error",
"no-proto": "error",
"no-redeclare": "error",
"no-restricted-properties": "error",
"no-tabs": "error",
"no-template-curly-in-string": "error",
"no-this-before-super": "error",
"no-throw-literal": "error",
"no-trailing-spaces": "error",
"no-unused-expressions": "error",
"no-unused-vars": "error",
"no-useless-constructor": "error",
"no-useless-return": "off",
"no-var": "error",
"no-void": "error",
"no-warning-comments": "off",
"no-with": "error",
"prefer-const": ["error", {"destructuring": "all"}],
"prefer-promise-reject-errors": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"quotes": ["error", "single"],
"semi": ["error", "always"],
"sort-imports": "error",
"spaced-comment": ["error", "always"],
"unicode-bom": "error",
"wrap-iife": "error",
"yield-star-spacing": ["error", {
"before": true,
"after": true
}],
"yoda": ["error", "always"]
}
}