-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc
74 lines (74 loc) · 2.22 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"env": {
"browser": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"prettier"
],
"rules": {
"prettier/prettier": "error",
"for-direction": "error",
"getter-return": "error",
"no-compare-neg-zero": "error",
"no-cond-assign": "error",
"no-console": "warn",
"no-debugger": "warn",
"no-dupe-args": "error",
"no-dupe-else-if": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-empty": "error",
"no-extra-boolean-cast": "error",
"no-extra-semi": "error",
"no-sparse-arrays": "error",
"no-template-curly-in-string": "error",
"no-unreachable": "error",
"use-isnan": "error",
"valid-typeof": "error",
"array-callback-return": "error",
"consistent-return": "error",
"curly": ["error", "all"],
"default-case": "error",
"default-case-last": "error",
"dot-location": ["error", "property"],
"eqeqeq": ["error", "always"],
"grouped-accessor-pairs": ["error", "getBeforeSet"],
"no-alert": "warn",
"no-else-return": ["error", { "allowElseIf": false }],
"no-empty-function": "error",
"no-floating-decimal": "error",
"no-labels": "error",
"no-lone-blocks": "error",
"no-loop-func": "error",
"no-multi-spaces": "error",
"no-multi-str": "error",
"no-return-assign": "error",
"no-self-compare": "error",
"no-useless-concat": "error",
"no-useless-escape": "error",
"no-useless-return": "error",
"yoda": "error",
"no-use-before-define": "error",
"arrow-body-style": ["error", "always"],
"arrow-parens": "error",
"arrow-spacing": ["error", { "before": true, "after": true }],
"constructor-super": "error",
"no-const-assign": "error",
"no-dupe-class-members": "error",
"no-duplicate-imports": "error",
"no-this-before-super": "error",
"no-useless-constructor": "error",
"no-var": "error",
"prefer-const": "error",
"prefer-template": "error"
}
}