@gtvmbh/eslint-config 1.1.6 → 1.1.7
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.
- package/package.json +1 -1
- package/src/typescript.js +11 -1
package/package.json
CHANGED
package/src/typescript.js
CHANGED
|
@@ -223,7 +223,17 @@ module.exports = {
|
|
|
223
223
|
'@typescript-eslint/restrict-template-expressions': 'off', // (oder warn mit allen options an),
|
|
224
224
|
|
|
225
225
|
// Restricts the types allowed in boolean expressions
|
|
226
|
-
'@typescript-eslint/strict-boolean-expressions': 'warn',
|
|
226
|
+
'@typescript-eslint/strict-boolean-expressions': ['warn', {
|
|
227
|
+
allowString: true,
|
|
228
|
+
allowNumber: true,
|
|
229
|
+
allowNullableObject: true,
|
|
230
|
+
allowNullableBoolean: false,
|
|
231
|
+
allowNullableString: false,
|
|
232
|
+
allowNullableNumber: false,
|
|
233
|
+
allowNullableEnum: false,
|
|
234
|
+
allowAny: false,
|
|
235
|
+
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false,
|
|
236
|
+
}],
|
|
227
237
|
|
|
228
238
|
// Exhaustiveness checking in switch with union type
|
|
229
239
|
'@typescript-eslint/switch-exhaustiveness-check': 'error',
|