eslint-config-isaacscript 4.17.0 → 4.19.0
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.
|
@@ -104,7 +104,20 @@ const SUPPORTED_RULES = {
|
|
|
104
104
|
"@typescript-eslint/no-duplicate-enum-values": "error",
|
|
105
105
|
"@typescript-eslint/no-duplicate-type-constituents": "error",
|
|
106
106
|
"@typescript-eslint/no-dynamic-delete": "error",
|
|
107
|
-
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* The `allowSingleExtends` option is enabled to allow for the common pattern of using using
|
|
110
|
+
* interfaces to provide an opaque type. (This can be useful with type-builders such as Zod, since
|
|
111
|
+
* `z.infer` uses `Expand`, which is sometimes not desired since it can lead to verbose/confusing
|
|
112
|
+
* mouseover tooltips and TypeScript errors.)
|
|
113
|
+
*/
|
|
114
|
+
"@typescript-eslint/no-empty-interface": [
|
|
115
|
+
"error",
|
|
116
|
+
{
|
|
117
|
+
allowSingleExtends: true,
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
|
+
|
|
108
121
|
"@typescript-eslint/no-explicit-any": "error",
|
|
109
122
|
"@typescript-eslint/no-extra-non-null-assertion": "error",
|
|
110
123
|
"@typescript-eslint/no-extraneous-class": "error",
|
|
@@ -231,7 +244,14 @@ const SUPPORTED_RULES = {
|
|
|
231
244
|
},
|
|
232
245
|
],
|
|
233
246
|
|
|
234
|
-
|
|
247
|
+
/** The `allowDefaultCaseForExhaustiveSwitch` option is disabled to make the rule stricter. */
|
|
248
|
+
"@typescript-eslint/switch-exhaustiveness-check": [
|
|
249
|
+
"error",
|
|
250
|
+
{
|
|
251
|
+
allowDefaultCaseForExhaustiveSwitch: false,
|
|
252
|
+
},
|
|
253
|
+
],
|
|
254
|
+
|
|
235
255
|
"@typescript-eslint/triple-slash-reference": "error",
|
|
236
256
|
"@typescript-eslint/type-annotation-spacing": "off", // eslint-config-prettier
|
|
237
257
|
|