-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
179 lines (179 loc) · 6.02 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"env": {
"es6": true,
"node": true
},
"parserOptions": {
"sourceType": "module",
"project": "./tsconfig.json"
},
"rules": {
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-extra-boolean-cast": "error",
"no-extra-semi": "error",
"no-func-assign": "error",
"no-import-assign": "error",
"no-invalid-regexp": "error",
"no-irregular-whitespace": "error",
"no-sparse-arrays": "error",
"no-template-curly-in-string": "error",
"no-unexpected-multiline": "error",
"no-unreachable": "error",
"no-unsafe-finally": "error",
"no-unsafe-negation": "error",
"use-isnan": "error",
"valid-typeof": "error",
"curly": ["error", "all"],
"dot-location": ["error", "property"],
"dot-notation": ["error"],
"eqeqeq": "error",
"no-case-declarations": "error",
"no-empty-pattern": "error",
"no-extend-native": "error",
"no-extra-bind": "error",
"no-extra-label": "error",
"no-fallthrough": "error",
"no-floating-decimal": "error",
"no-global-assign": "error",
"no-lone-blocks": "error",
"no-loop-func": "error",
"no-multi-spaces": "error",
"no-new-func": "error",
"no-new-wrappers": "error",
"no-octal": "error",
"no-self-assign": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-throw-literal": "error",
"no-useless-call": "error",
"no-unused-labels": "error",
"no-useless-catch": "error",
"no-with": "error",
"prefer-named-capture-group": "error",
"wrap-iife": "error",
"yoda": "error",
"no-delete-var": "error",
"no-label-var": "error",
"@typescript-eslint/no-shadow": "error",
"no-shadow-restricted-names": "error",
"no-undef-init": "error",
"@typescript-eslint/no-unused-vars-experimental": "error",
"array-bracket-newline": ["error", "consistent"],
"array-bracket-spacing": ["error", "always"],
"block-spacing": ["error", "always"],
"brace-style": ["error", "1tbs", { "allowSingleLine": false }],
"comma-dangle": ["error", "always-multiline"],
"comma-spacing": "error",
"comma-style": ["error"],
"computed-property-spacing": "error",
"eol-last": "error",
"func-call-spacing": "error",
"func-name-matching": "error",
"func-names": ["error", "as-needed"],
"indent": ["error", 2, { "SwitchCase": 1 }],
"key-spacing": "error",
"keyword-spacing": "error",
"new-parens": "error",
"no-array-constructor": "error",
"no-lonely-if": "error",
"no-mixed-operators": "error",
"no-multiple-empty-lines": ["error", { "max": 1 }],
"no-new-object": "error",
"no-trailing-spaces": "error",
"no-unneeded-ternary": "error",
"no-whitespace-before-property": "error",
"object-curly-spacing": ["error", "always"],
"operator-assignment": "error",
"operator-linebreak": "error",
"padded-blocks": ["error", "never"],
"prefer-object-spread": "error",
"quotes": ["error", "single"],
"@typescript-eslint/semi": "error",
"semi-spacing": "error",
"space-before-blocks": "error",
"@typescript-eslint/space-before-function-paren": ["error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
"array-element-newline": ["error", "consistent"],
"@typescript-eslint/require-await": "error",
"space-in-parens": "error",
"space-infix-ops": "error",
"space-unary-ops": "error",
"switch-colon-spacing": "error",
"wrap-regex": "error",
"arrow-body-style": ["error", "as-needed"],
"arrow-spacing": "error",
"constructor-super": "error",
"generator-star-spacing": "error",
"no-class-assign": "error",
"no-const-assign": "error",
"@typescript-eslint/no-dupe-class-members": "error",
"no-duplicate-imports": ["error", { "includeExports": false }],
"no-new-symbol": "error",
"no-this-before-super": "error",
"no-useless-computed-key": ["error", { "enforceForClassMembers": true }],
"no-useless-constructor": "off",
"@typescript-eslint/no-useless-constructor": "error",
"no-useless-rename": "error",
"no-var": "error",
"object-shorthand": "error",
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-destructuring": ["error", {
"VariableDeclarator": {
"array": false,
"object": true
},
"AssignmentExpression": {
"array": false,
"object": false
}
}],
"prefer-rest-params": "error",
"prefer-spread": "error",
"rest-spread-spacing": ["error", "never"],
"symbol-description": "error",
"template-curly-spacing": "error",
"yield-star-spacing": "error",
"@typescript-eslint/adjacent-overload-signatures": ["error"],
"@typescript-eslint/array-type": ["error", { "default": "array-simple" }],
"@typescript-eslint/explicit-member-accessibility": ["error", {
"accessibility": "explicit",
"overrides": {
"accessors": "off",
"constructors": "no-public",
"parameterProperties": "off"
}
}],
"@typescript-eslint/member-delimiter-style": ["error", {
"multiline": {
"delimiter": "semi",
"requireLast": true
},
"singleline": {
"delimiter": "semi",
"requireLast": false
}
}],
"@typescript-eslint/method-signature-style": ["error", "property"],
"@typescript-eslint/no-empty-interface": "error",
"@typescript-eslint/no-extraneous-class": "error",
"@typescript-eslint/no-implied-eval": "error",
"@typescript-eslint/no-this-alias": "error",
"@typescript-eslint/no-throw-literal": "error",
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "error",
"@typescript-eslint/no-unnecessary-type-arguments": "error",
"@typescript-eslint/prefer-includes": "error",
"@typescript-eslint/prefer-optional-chain": "error",
"@typescript-eslint/prefer-string-starts-ends-with": "error",
"@typescript-eslint/type-annotation-spacing": "error"
}
}