@spscommerce/eslint-config-typescript 0.0.2 β†’ 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,254 +3,435 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.typescript = void 0;
4
4
  // βœ… = recommended, πŸ”§ = fixable, πŸ’­ = requires type information
5
5
  exports.typescript = {
6
- /** Require that member overloads be consecutive βœ…
7
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/adjacent-overload-signatures.md */
8
- '@typescript-eslint/adjacent-overload-signatures': 'error',
9
- /** Requires using either `T[]` or `Array<T>` for arrays πŸ”§
10
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/array-type.md */
11
- '@typescript-eslint/array-type': ['error', { default: 'array-simple' }],
12
- /** Disallows awaiting a value that is not a Thenable βœ… πŸ’­
13
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/await-thenable.md */
14
- '@typescript-eslint/await-thenable': 'error',
15
- /** Bans `@ts-<directive>` comments from being used or requires descriptions after directive βœ…
16
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/ban-ts-comment.md */
17
- '@typescript-eslint/ban-ts-comment': 'error',
18
- /** Bans // tslint:<rule-flag> comments from being used πŸ”§
19
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/ban-tslint-comment.md */
20
- '@typescript-eslint/ban-tslint-comment': 'off',
21
- /** Bans specific types from being used βœ… πŸ”§
22
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/ban-types.md
23
- * The default config you get if you enable this recommended rule without specifying your own should be reviewed. */
24
- '@typescript-eslint/ban-types': 'error',
25
- /** Ensures that literals on classes are exposed in a consistent style πŸ”§
26
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/class-literal-property-style.md */
27
- '@typescript-eslint/class-literal-property-style': ["error", "fields"],
28
- /** Enforce or disallow the use of the record type πŸ”§
29
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/consistent-indexed-object-style.md */
30
- '@typescript-eslint/consistent-indexed-object-style': ['error', 'record'],
31
- /** Enforces consistent usage of type assertions
32
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/consistent-type-assertions.md */
33
- '@typescript-eslint/consistent-type-assertions': ['error', { assertionStyle: 'as' }],
34
- /** Consistent with type definition either `interface` or `type` πŸ”§
35
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/consistent-type-definitions.md */
36
- '@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
37
- /** Enforces consistent usage of type imports πŸ”§
38
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/consistent-type-imports.md */
39
- '@typescript-eslint/consistent-type-imports': ['error', { prefer: 'type-imports' }],
40
- /** Require explicit return types on functions and class methods
41
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/explicit-function-return-type.md */
42
- '@typescript-eslint/explicit-function-return-type': 'error',
43
- /** Require explicit accessibility modifiers on class properties and methods πŸ”§
44
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/explicit-member-accessibility.md */
45
- '@typescript-eslint/explicit-member-accessibility': 'off',
46
- /** Require explicit return and argument types on exported functions' and classes' public class methods βœ…
47
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/explicit-module-boundary-types.md */
48
- '@typescript-eslint/explicit-module-boundary-types': 'error',
49
- /** Require a specific member delimiter style for interfaces and type literals πŸ”§
50
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/member-delimiter-style.md */
51
- '@typescript-eslint/member-delimiter-style': 'error',
52
- /** Require a consistent member declaration order
53
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/member-ordering.md */
54
- '@typescript-eslint/member-ordering': 'off',
55
- /** Enforces using a particular method signature syntax πŸ”§
56
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/method-signature-style.md */
57
- '@typescript-eslint/method-signature-style': 'off',
58
- /** Enforces naming conventions for everything across a codebase πŸ’­
59
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/naming-convention.md */
60
- '@typescript-eslint/naming-convention': 'off',
61
- /** Requires that `.toString()` is only called on objects which provide useful information when stringified πŸ’­
62
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-base-to-string.md */
63
- '@typescript-eslint/no-base-to-string': 'off',
64
- /** Disallow non-null assertion in locations that may be confusing πŸ”§
65
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-confusing-non-null-assertion.md */
66
- '@typescript-eslint/no-confusing-non-null-assertion': 'off',
67
- /** Requires expressions of type void to appear in statement position πŸ”§ πŸ’­
68
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-confusing-void-expression.md */
69
- '@typescript-eslint/no-confusing-void-expression': 'off',
70
- /** Disallow the delete operator with computed key expressions πŸ”§
71
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-dynamic-delete.md */
72
- '@typescript-eslint/no-dynamic-delete': 'off',
73
- /** Disallow the declaration of empty interfaces βœ… πŸ”§
74
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-empty-interface.md */
75
- '@typescript-eslint/no-empty-interface': 'error',
76
- /** Disallow usage of the `any` type βœ… πŸ”§
77
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-explicit-any.md */
78
- '@typescript-eslint/no-explicit-any': 'error',
79
- /** Disallow extra non-null assertion βœ… πŸ”§
80
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-extra-non-null-assertion.md */
81
- '@typescript-eslint/no-extra-non-null-assertion': 'error',
82
- /** Forbids the use of classes as namespaces
83
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-extraneous-class.md */
84
- '@typescript-eslint/no-extraneous-class': 'off',
85
- /** Requires Promise-like values to be handled appropriately βœ… πŸ’­
86
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-floating-promises.md */
87
- '@typescript-eslint/no-floating-promises': 'error',
88
- /** Disallow iterating over an array with a for-in loop βœ… πŸ’­
89
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-for-in-array.md */
90
- '@typescript-eslint/no-for-in-array': 'error',
91
- /** Disallow usage of the implicit `any` type in catch clauses πŸ”§
92
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-implicit-any-catch.md */
93
- '@typescript-eslint/no-implicit-any-catch': 'off',
94
- /** Disallows explicit type declarations for variables or parameters initialized to a number, string, or boolean βœ… πŸ”§
95
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-inferrable-types.md */
96
- '@typescript-eslint/no-inferrable-types': 'error',
97
- /** Disallows usage of `void` type outside of generic or return types
98
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-invalid-void-type.md */
99
- '@typescript-eslint/no-invalid-void-type': 'off',
100
- /** Disallow the `void` operator except when used to discard a value πŸ”§ πŸ’­
101
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-meaningless-void-operator.md */
102
- '@typescript-eslint/no-meaningless-void-operator': 'off',
103
- /** Enforce valid definition of `new` and `constructor` βœ…
104
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-misused-new.md */
105
- '@typescript-eslint/no-misused-new': 'error',
106
- /** Avoid using promises in places not designed to handle them βœ… πŸ’­
107
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-misused-promises.md */
108
- '@typescript-eslint/no-misused-promises': 'error',
109
- /** Disallow the use of custom TypeScript modules and namespaces βœ…
110
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-namespace.md */
111
- '@typescript-eslint/no-namespace': 'error',
112
- /** Disallows using a non-null assertion in the left operand of the nullish coalescing operator
113
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-non-null-asserted-nullish-coalescing.md */
114
- '@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'off',
115
- /** Disallows using a non-null assertion after an optional chain expression βœ…
116
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-non-null-asserted-optional-chain.md */
117
- '@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
118
- /** Disallows non-null assertions using the `!` postfix operator βœ…
119
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-non-null-assertion.md */
120
- '@typescript-eslint/no-non-null-assertion': 'error',
121
- /** Disallow the use of parameter properties in class constructors
122
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-parameter-properties.md */
123
- '@typescript-eslint/no-parameter-properties': 'off',
124
- /** Disallows invocation of `require()`
125
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-require-imports.md */
126
- '@typescript-eslint/no-require-imports': 'off',
127
- /** Disallow aliasing `this` βœ…
128
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-this-alias.md */
129
- '@typescript-eslint/no-this-alias': 'error',
130
- /** Disallow the use of type aliases
131
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-type-alias.md */
132
- '@typescript-eslint/no-type-alias': 'off',
133
- /** Flags unnecessary equality comparisons against boolean literals πŸ”§ πŸ’­
134
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unnecessary-boolean-literal-compare.md */
135
- '@typescript-eslint/no-unnecessary-boolean-literal-compare': 'off',
136
- /** Prevents conditionals where the type is always truthy or always falsy πŸ”§ πŸ’­
137
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unnecessary-condition.md */
138
- '@typescript-eslint/no-unnecessary-condition': 'off',
139
- /** Warns when a namespace qualifier is unnecessary πŸ”§ πŸ’­
140
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unnecessary-qualifier.md */
141
- '@typescript-eslint/no-unnecessary-qualifier': 'off',
142
- /** Enforces that type arguments will not be used if not required πŸ”§ πŸ’­
143
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unnecessary-type-arguments.md */
144
- '@typescript-eslint/no-unnecessary-type-arguments': 'off',
145
- /** Warns if a type assertion does not change the type of an expression βœ… πŸ”§ πŸ’­
146
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unnecessary-type-assertion.md */
147
- '@typescript-eslint/no-unnecessary-type-assertion': 'error',
148
- /** Disallows unnecessary constraints on generic types πŸ”§
149
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unnecessary-type-constraint.md */
150
- '@typescript-eslint/no-unnecessary-type-constraint': 'off',
151
- /** Disallows calling an function with an `any` type value πŸ’­
152
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unsafe-argument.md */
153
- '@typescript-eslint/no-unsafe-argument': 'off',
154
- /** Disallows assigning `any` to variables and properties βœ… πŸ’­
155
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unsafe-assignment.md */
156
- '@typescript-eslint/no-unsafe-assignment': 'error',
157
- /** Disallows calling an `any` type value βœ… πŸ’­
158
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unsafe-call.md */
159
- '@typescript-eslint/no-unsafe-call': 'error',
160
- /** Disallows member access on `any` typed variables βœ… πŸ’­
161
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unsafe-member-access.md */
162
- '@typescript-eslint/no-unsafe-member-access': 'error',
163
- /** Disallows returning any from a function βœ… πŸ’­
164
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unsafe-return.md */
165
- '@typescript-eslint/no-unsafe-return': 'error',
166
- /** Disallows the use of require statements except in import statements βœ…
167
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-var-requires.md */
168
- '@typescript-eslint/no-var-requires': 'error',
169
- /** Prefers a non-null assertion over explicit type cast when possible πŸ”§ πŸ’­
170
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/non-nullable-type-assertion-style.md */
171
- '@typescript-eslint/non-nullable-type-assertion-style': 'off',
172
- /** Prefer usage of as const over literal type βœ… πŸ”§
173
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-as-const.md */
174
- '@typescript-eslint/prefer-as-const': 'error',
175
- /** Prefer initializing each enums member value
176
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-enum-initializers.md */
177
- '@typescript-eslint/prefer-enum-initializers': 'off',
178
- /** Prefer a β€˜for-of’ loop over a standard β€˜for’ loop if the index is only used to access the array being iterated
179
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-for-of.md */
180
- '@typescript-eslint/prefer-for-of': 'off',
181
- /** Use function types instead of interfaces with call signatures πŸ”§
182
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-function-type.md */
183
- '@typescript-eslint/prefer-function-type': 'off',
184
- /** Enforce includes method over indexOf method πŸ”§ πŸ’­
185
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-includes.md */
186
- '@typescript-eslint/prefer-includes': 'off',
187
- /** Require that all enum members be literal values to prevent unintended enum member name shadow issues
188
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-literal-enum-member.md */
189
- '@typescript-eslint/prefer-literal-enum-member': 'off',
190
- /** Require the use of the `namespace` keyword instead of the `module` keyword to declare custom TypeScript modules βœ… πŸ”§
191
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-namespace-keyword.md */
192
- '@typescript-eslint/prefer-namespace-keyword': 'error',
193
- /** Enforce the usage of the nullish coalescing operator instead of logical chaining πŸ’­
194
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-nullish-coalescing.md */
195
- '@typescript-eslint/prefer-nullish-coalescing': 'off',
196
- /** Prefer using concise optional chain expressions instead of chained logical ands
197
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-optional-chain.md */
198
- '@typescript-eslint/prefer-optional-chain': 'off',
199
- /** Requires that private members are marked as `readonly` if they're never modified outside of the constructor πŸ”§ πŸ’­
200
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-readonly.md */
201
- '@typescript-eslint/prefer-readonly': 'off',
202
- /** Requires that function parameters are typed as `readonly` to prevent accidental mutation of inputs πŸ’­
203
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-readonly-parameter-types.md */
204
- '@typescript-eslint/prefer-readonly-parameter-types': 'off',
205
- /** Prefer using type parameter when calling `Array#reduce` instead of casting πŸ”§ πŸ’­
206
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-reduce-type-parameter.md */
207
- '@typescript-eslint/prefer-reduce-type-parameter': 'off',
208
- /** Enforce that `RegExp#exec` is used instead of `String#match` if no global flag is provided βœ… πŸ”§ πŸ’­
209
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-regexp-exec.md */
210
- '@typescript-eslint/prefer-regexp-exec': 'error',
211
- /** Enforce that `this` is used when only `this` type is returned πŸ”§ πŸ’­
212
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-return-this-type.md */
213
- '@typescript-eslint/prefer-return-this-type': 'off',
214
- /** Enforce the use of `String#startsWith` and `String#endsWith` instead of other equivalent methods of checking substrings πŸ”§ πŸ’­
215
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-string-starts-ends-with.md */
216
- '@typescript-eslint/prefer-string-starts-ends-with': 'off',
217
- /** Recommends using `@ts-expect-error` over `@ts-ignore` πŸ”§
218
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-ts-expect-error.md */
219
- '@typescript-eslint/prefer-ts-expect-error': 'off',
220
- /** Requires any function or method that returns a Promise to be marked async πŸ”§ πŸ’­
221
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/promise-function-async.md */
222
- '@typescript-eslint/promise-function-async': 'off',
223
- /** Requires `Array#sort` calls to always provide a `compareFunction` πŸ’­
224
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/require-array-sort-compare.md */
225
- '@typescript-eslint/require-array-sort-compare': 'off',
226
- /** When adding two variables, operands must both be of type number or of type string βœ… πŸ’­
227
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/restrict-plus-operands.md */
228
- '@typescript-eslint/restrict-plus-operands': 'error',
229
- /** Enforce template literal expressions to be of string type βœ… πŸ’­
230
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/restrict-template-expressions.md */
231
- '@typescript-eslint/restrict-template-expressions': 'error',
232
- /** Enforces that members of a type union/intersection are sorted alphabetically πŸ”§
233
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/sort-type-union-intersection-members.md */
234
- '@typescript-eslint/sort-type-union-intersection-members': 'off',
235
- /** Restricts the types allowed in boolean expressions πŸ”§ πŸ’­
236
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/strict-boolean-expressions.md */
237
- '@typescript-eslint/strict-boolean-expressions': 'off',
238
- /** Exhaustiveness checking in switch with union type πŸ’­
239
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/switch-exhaustiveness-check.md */
240
- '@typescript-eslint/switch-exhaustiveness-check': 'off',
241
- /** Sets preference level for triple slash directives versus ES6-style import declarations βœ…
242
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/triple-slash-reference.md */
243
- '@typescript-eslint/triple-slash-reference': 'error',
244
- /** Require consistent spacing around type annotations πŸ”§
245
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/type-annotation-spacing.md */
246
- '@typescript-eslint/type-annotation-spacing': 'off',
247
- /** Requires type annotations to exist
248
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/typedef.md */
249
- '@typescript-eslint/typedef': 'off',
250
- /** Enforces unbound methods are called with their expected scope βœ… πŸ’­
251
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/unbound-method.md */
252
- '@typescript-eslint/unbound-method': 'off',
253
- /** Warns for any two overloads that could be unified into one by using a union or an optional/rest parameter
254
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/unified-signatures.md */
255
- '@typescript-eslint/unified-signatures': 'off',
6
+ /**
7
+ * Require that member overloads be consecutive βœ…
8
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/adjacent-overload-signatures.md
9
+ */
10
+ "@typescript-eslint/adjacent-overload-signatures": "error",
11
+ /**
12
+ * Requires using either `T[]` or `Array<T>` for arrays πŸ”§
13
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/array-type.md
14
+ */
15
+ "@typescript-eslint/array-type": ["error", { default: "array-simple" }],
16
+ /**
17
+ * Disallows awaiting a value that is not a Thenable βœ… πŸ’­
18
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/await-thenable.md
19
+ */
20
+ "@typescript-eslint/await-thenable": "error",
21
+ /**
22
+ * Bans `@ts-<directive>` comments from being used or requires descriptions after directive βœ…
23
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/ban-ts-comment.md
24
+ */
25
+ "@typescript-eslint/ban-ts-comment": "error",
26
+ /**
27
+ * Bans // tslint:<rule-flag> comments from being used πŸ”§
28
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/ban-tslint-comment.md
29
+ */
30
+ "@typescript-eslint/ban-tslint-comment": "off",
31
+ /**
32
+ * Bans specific types from being used βœ… πŸ”§
33
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/ban-types.md
34
+ * The default config you get if you enable this recommended rule without specifying your own
35
+ * should be reviewed.
36
+ */
37
+ "@typescript-eslint/ban-types": "error",
38
+ /**
39
+ * Ensures that literals on classes are exposed in a consistent style πŸ”§
40
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/class-literal-property-style.md
41
+ */
42
+ "@typescript-eslint/class-literal-property-style": ["error", "fields"],
43
+ /**
44
+ * Enforce or disallow the use of the record type πŸ”§
45
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/consistent-indexed-object-style.md
46
+ */
47
+ "@typescript-eslint/consistent-indexed-object-style": ["error", "record"],
48
+ /**
49
+ * Enforces consistent usage of type assertions
50
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/consistent-type-assertions.md
51
+ */
52
+ "@typescript-eslint/consistent-type-assertions": ["error", { assertionStyle: "as" }],
53
+ /**
54
+ * Consistent with type definition either `interface` or `type` πŸ”§
55
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/consistent-type-definitions.md
56
+ */
57
+ "@typescript-eslint/consistent-type-definitions": ["error", "interface"],
58
+ /**
59
+ * Enforces consistent usage of type imports πŸ”§
60
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/consistent-type-imports.md
61
+ */
62
+ "@typescript-eslint/consistent-type-imports": ["error", { prefer: "type-imports" }],
63
+ /**
64
+ * Require explicit return types on functions and class methods
65
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/explicit-function-return-type.md
66
+ */
67
+ "@typescript-eslint/explicit-function-return-type": "error",
68
+ /**
69
+ * Require explicit accessibility modifiers on class properties and methods πŸ”§
70
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/explicit-member-accessibility.md
71
+ */
72
+ "@typescript-eslint/explicit-member-accessibility": "off",
73
+ /**
74
+ * Require explicit return and argument types on exported
75
+ * functions' and classes' public class methods βœ…
76
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/explicit-module-boundary-types.md
77
+ */
78
+ "@typescript-eslint/explicit-module-boundary-types": "error",
79
+ /**
80
+ * Require a specific member delimiter style for interfaces and type literals πŸ”§
81
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/member-delimiter-style.md
82
+ */
83
+ "@typescript-eslint/member-delimiter-style": "error",
84
+ /**
85
+ * Require a consistent member declaration order
86
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/member-ordering.md
87
+ */
88
+ "@typescript-eslint/member-ordering": "error",
89
+ /**
90
+ * Enforces using a particular method signature syntax πŸ”§
91
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/method-signature-style.md
92
+ */
93
+ "@typescript-eslint/method-signature-style": "error",
94
+ /**
95
+ * Enforces naming conventions for everything across a codebase πŸ’­
96
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/naming-convention.md
97
+ */
98
+ "@typescript-eslint/naming-convention": "off",
99
+ /**
100
+ * Requires that `.toString()` is only called on objects
101
+ * which provide useful information when stringified πŸ’­
102
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-base-to-string.md
103
+ */
104
+ "@typescript-eslint/no-base-to-string": "error",
105
+ /**
106
+ * Disallow non-null assertion in locations that may be confusing πŸ”§
107
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-confusing-non-null-assertion.md
108
+ */
109
+ "@typescript-eslint/no-confusing-non-null-assertion": "error",
110
+ /**
111
+ * Requires expressions of type void to appear in statement position πŸ”§ πŸ’­
112
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-confusing-void-expression.md
113
+ */
114
+ "@typescript-eslint/no-confusing-void-expression": [
115
+ "error",
116
+ { "ignoreArrowShorthand": true }
117
+ ],
118
+ /**
119
+ * Disallow the delete operator with computed key expressions πŸ”§
120
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-dynamic-delete.md
121
+ */
122
+ "@typescript-eslint/no-dynamic-delete": "error",
123
+ /**
124
+ * Disallow the declaration of empty interfaces βœ… πŸ”§
125
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-empty-interface.md
126
+ */
127
+ "@typescript-eslint/no-empty-interface": "error",
128
+ /**
129
+ * Disallow usage of the `any` type βœ… πŸ”§
130
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-explicit-any.md
131
+ */
132
+ "@typescript-eslint/no-explicit-any": "error",
133
+ /**
134
+ * Disallow extra non-null assertion βœ… πŸ”§
135
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-extra-non-null-assertion.md
136
+ */
137
+ "@typescript-eslint/no-extra-non-null-assertion": "error",
138
+ /**
139
+ * Forbids the use of classes as namespaces
140
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-extraneous-class.md
141
+ */
142
+ "@typescript-eslint/no-extraneous-class": "error",
143
+ /**
144
+ * Requires Promise-like values to be handled appropriately βœ… πŸ’­
145
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-floating-promises.md
146
+ */
147
+ "@typescript-eslint/no-floating-promises": "error",
148
+ /**
149
+ * Disallow iterating over an array with a for-in loop βœ… πŸ’­
150
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-for-in-array.md
151
+ */
152
+ "@typescript-eslint/no-for-in-array": "error",
153
+ /**
154
+ * Disallow usage of the implicit `any` type in catch clauses πŸ”§
155
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-implicit-any-catch.md
156
+ */
157
+ "@typescript-eslint/no-implicit-any-catch": "warn",
158
+ /**
159
+ * Disallows explicit type declarations for variables or
160
+ * parameters initialized to a number, string, or boolean βœ… πŸ”§
161
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-inferrable-types.md
162
+ */
163
+ "@typescript-eslint/no-inferrable-types": "error",
164
+ /**
165
+ * Disallows usage of `void` type outside of generic or return types
166
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-invalid-void-type.md
167
+ */
168
+ "@typescript-eslint/no-invalid-void-type": "warn",
169
+ /**
170
+ * Disallow the `void` operator except when used to discard a value πŸ”§ πŸ’­
171
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-meaningless-void-operator.md
172
+ */
173
+ "@typescript-eslint/no-meaningless-void-operator": "error",
174
+ /**
175
+ * Enforce valid definition of `new` and `constructor` βœ…
176
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-misused-new.md
177
+ */
178
+ "@typescript-eslint/no-misused-new": "error",
179
+ /**
180
+ * Avoid using promises in places not designed to handle them βœ… πŸ’­
181
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-misused-promises.md
182
+ */
183
+ "@typescript-eslint/no-misused-promises": "error",
184
+ /**
185
+ * Disallow the use of custom TypeScript modules and namespaces βœ…
186
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-namespace.md
187
+ */
188
+ "@typescript-eslint/no-namespace": "error",
189
+ /**
190
+ * Disallows using a non-null assertion in the left operand of the nullish coalescing operator
191
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-non-null-asserted-nullish-coalescing.md
192
+ */
193
+ "@typescript-eslint/no-non-null-asserted-nullish-coalescing": "error",
194
+ /**
195
+ * Disallows using a non-null assertion after an optional chain expression βœ…
196
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-non-null-asserted-optional-chain.md
197
+ */
198
+ "@typescript-eslint/no-non-null-asserted-optional-chain": "error",
199
+ /**
200
+ * Disallows non-null assertions using the `!` postfix operator βœ…
201
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-non-null-assertion.md
202
+ */
203
+ "@typescript-eslint/no-non-null-assertion": "error",
204
+ /**
205
+ * Disallow the use of parameter properties in class constructors
206
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-parameter-properties.md
207
+ */
208
+ "@typescript-eslint/no-parameter-properties": "off",
209
+ /**
210
+ * Disallows invocation of `require()`
211
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-require-imports.md
212
+ */
213
+ "@typescript-eslint/no-require-imports": "error",
214
+ /**
215
+ * Disallow aliasing `this` βœ…
216
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-this-alias.md
217
+ */
218
+ "@typescript-eslint/no-this-alias": "error",
219
+ /**
220
+ * Disallow the use of type aliases
221
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-type-alias.md
222
+ */
223
+ "@typescript-eslint/no-type-alias": "off",
224
+ /**
225
+ * Flags unnecessary equality comparisons against boolean literals πŸ”§ πŸ’­
226
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unnecessary-boolean-literal-compare.md
227
+ */
228
+ "@typescript-eslint/no-unnecessary-boolean-literal-compare": "off",
229
+ /**
230
+ * Prevents conditionals where the type is always truthy or always falsy πŸ”§ πŸ’­
231
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unnecessary-condition.md
232
+ */
233
+ "@typescript-eslint/no-unnecessary-condition": "off",
234
+ /**
235
+ * Warns when a namespace qualifier is unnecessary πŸ”§ πŸ’­
236
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unnecessary-qualifier.md
237
+ */
238
+ "@typescript-eslint/no-unnecessary-qualifier": "off",
239
+ /**
240
+ * Enforces that type arguments will not be used if not required πŸ”§ πŸ’­
241
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unnecessary-type-arguments.md
242
+ */
243
+ "@typescript-eslint/no-unnecessary-type-arguments": "off",
244
+ /**
245
+ * Warns if a type assertion does not change the type of an expression βœ… πŸ”§ πŸ’­
246
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unnecessary-type-assertion.md
247
+ */
248
+ "@typescript-eslint/no-unnecessary-type-assertion": "error",
249
+ /**
250
+ * Disallows unnecessary constraints on generic types πŸ”§
251
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unnecessary-type-constraint.md
252
+ */
253
+ "@typescript-eslint/no-unnecessary-type-constraint": "off",
254
+ /**
255
+ * Disallows calling an function with an `any` type value πŸ’­
256
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unsafe-argument.md
257
+ */
258
+ "@typescript-eslint/no-unsafe-argument": "off",
259
+ /**
260
+ * Disallows assigning `any` to variables and properties βœ… πŸ’­
261
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unsafe-assignment.md
262
+ */
263
+ "@typescript-eslint/no-unsafe-assignment": "error",
264
+ /**
265
+ * Disallows calling an `any` type value βœ… πŸ’­
266
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unsafe-call.md
267
+ */
268
+ "@typescript-eslint/no-unsafe-call": "error",
269
+ /**
270
+ * Disallows member access on `any` typed variables βœ… πŸ’­
271
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unsafe-member-access.md
272
+ */
273
+ "@typescript-eslint/no-unsafe-member-access": "error",
274
+ /**
275
+ * Disallows returning any from a function βœ… πŸ’­
276
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unsafe-return.md
277
+ */
278
+ "@typescript-eslint/no-unsafe-return": "error",
279
+ /**
280
+ * Disallows the use of require statements except in import statements βœ…
281
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-var-requires.md
282
+ */
283
+ "@typescript-eslint/no-var-requires": "error",
284
+ /**
285
+ * Prefers a non-null assertion over explicit type cast when possible πŸ”§ πŸ’­
286
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/non-nullable-type-assertion-style.md
287
+ */
288
+ "@typescript-eslint/non-nullable-type-assertion-style": "off",
289
+ /**
290
+ * Prefer usage of as const over literal type βœ… πŸ”§
291
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-as-const.md
292
+ */
293
+ "@typescript-eslint/prefer-as-const": "error",
294
+ /**
295
+ * Prefer initializing each enums member value
296
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-enum-initializers.md
297
+ */
298
+ "@typescript-eslint/prefer-enum-initializers": "off",
299
+ /**
300
+ * Prefer a β€˜for-of’ loop over a standard β€˜for’ loop if the
301
+ * index is only used to access the array being iterated
302
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-for-of.md
303
+ */
304
+ "@typescript-eslint/prefer-for-of": "off",
305
+ /**
306
+ * Use function types instead of interfaces with call signatures πŸ”§
307
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-function-type.md
308
+ */
309
+ "@typescript-eslint/prefer-function-type": "off",
310
+ /**
311
+ * Enforce includes method over indexOf method πŸ”§ πŸ’­
312
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-includes.md
313
+ */
314
+ "@typescript-eslint/prefer-includes": "off",
315
+ /**
316
+ * Require that all enum members be literal values to
317
+ * prevent unintended enum member name shadow issues
318
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-literal-enum-member.md
319
+ */
320
+ "@typescript-eslint/prefer-literal-enum-member": "off",
321
+ /**
322
+ * Require the use of the `namespace` keyword instead of the
323
+ * `module` keyword to declare custom TypeScript modules βœ… πŸ”§
324
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-namespace-keyword.md
325
+ */
326
+ "@typescript-eslint/prefer-namespace-keyword": "error",
327
+ /**
328
+ * Enforce the usage of the nullish coalescing operator instead of logical chaining πŸ’­
329
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-nullish-coalescing.md
330
+ */
331
+ "@typescript-eslint/prefer-nullish-coalescing": "off",
332
+ /**
333
+ * Prefer using concise optional chain expressions instead of chained logical ands
334
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-optional-chain.md
335
+ */
336
+ "@typescript-eslint/prefer-optional-chain": "off",
337
+ /**
338
+ * Requires that private members are marked as `readonly` if
339
+ * they're never modified outside of the constructor πŸ”§ πŸ’­
340
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-readonly.md
341
+ */
342
+ "@typescript-eslint/prefer-readonly": "off",
343
+ /**
344
+ * Requires that function parameters are typed as `readonly`
345
+ * to prevent accidental mutation of inputs πŸ’­
346
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-readonly-parameter-types.md
347
+ */
348
+ "@typescript-eslint/prefer-readonly-parameter-types": "off",
349
+ /**
350
+ * Prefer using type parameter when calling `Array#reduce` instead of casting πŸ”§ πŸ’­
351
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-reduce-type-parameter.md
352
+ */
353
+ "@typescript-eslint/prefer-reduce-type-parameter": "off",
354
+ /**
355
+ * Enforce that `RegExp#exec` is used instead of `String#match`
356
+ * if no global flag is provided βœ… πŸ”§ πŸ’­
357
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-regexp-exec.md
358
+ */
359
+ "@typescript-eslint/prefer-regexp-exec": "error",
360
+ /**
361
+ * Enforce that `this` is used when only `this` type is returned πŸ”§ πŸ’­
362
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-return-this-type.md
363
+ */
364
+ "@typescript-eslint/prefer-return-this-type": "off",
365
+ /**
366
+ * Enforce the use of `String#startsWith` and `String#endsWith` instead
367
+ * of other equivalent methods of checking substrings πŸ”§ πŸ’­
368
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-string-starts-ends-with.md
369
+ */
370
+ "@typescript-eslint/prefer-string-starts-ends-with": "off",
371
+ /**
372
+ * Recommends using `@ts-expect-error` over `@ts-ignore` πŸ”§
373
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-ts-expect-error.md
374
+ */
375
+ "@typescript-eslint/prefer-ts-expect-error": "off",
376
+ /**
377
+ * Requires any function or method that returns a Promise to be marked async πŸ”§ πŸ’­
378
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/promise-function-async.md
379
+ */
380
+ "@typescript-eslint/promise-function-async": "off",
381
+ /**
382
+ * Requires `Array#sort` calls to always provide a `compareFunction` πŸ’­
383
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/require-array-sort-compare.md
384
+ */
385
+ "@typescript-eslint/require-array-sort-compare": "off",
386
+ /**
387
+ * When adding two variables, operands must both be of type number or of type string βœ… πŸ’­
388
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/restrict-plus-operands.md
389
+ */
390
+ "@typescript-eslint/restrict-plus-operands": "error",
391
+ /**
392
+ * Enforce template literal expressions to be of string type βœ… πŸ’­
393
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/restrict-template-expressions.md
394
+ */
395
+ "@typescript-eslint/restrict-template-expressions": "error",
396
+ /**
397
+ * Enforces that members of a type union/intersection are sorted alphabetically πŸ”§
398
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/sort-type-union-intersection-members.md
399
+ */
400
+ "@typescript-eslint/sort-type-union-intersection-members": "off",
401
+ /**
402
+ * Restricts the types allowed in boolean expressions πŸ”§ πŸ’­
403
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/strict-boolean-expressions.md
404
+ */
405
+ "@typescript-eslint/strict-boolean-expressions": "off",
406
+ /**
407
+ * Exhaustiveness checking in switch with union type πŸ’­
408
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/switch-exhaustiveness-check.md
409
+ */
410
+ "@typescript-eslint/switch-exhaustiveness-check": "off",
411
+ /**
412
+ * Sets preference level for triple slash directives versus ES6-style import declarations βœ…
413
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/triple-slash-reference.md
414
+ */
415
+ "@typescript-eslint/triple-slash-reference": "error",
416
+ /**
417
+ * Require consistent spacing around type annotations πŸ”§
418
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/type-annotation-spacing.md
419
+ */
420
+ "@typescript-eslint/type-annotation-spacing": "off",
421
+ /**
422
+ * Requires type annotations to exist
423
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/typedef.md
424
+ */
425
+ "@typescript-eslint/typedef": "off",
426
+ /**
427
+ * Enforces unbound methods are called with their expected scope βœ… πŸ’­
428
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/unbound-method.md
429
+ */
430
+ "@typescript-eslint/unbound-method": "off",
431
+ /**
432
+ * Warns for any two overloads that could be unified into
433
+ * one by using a union or an optional/rest parameter
434
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/unified-signatures.md
435
+ */
436
+ "@typescript-eslint/unified-signatures": "off",
256
437
  };