eslint-config-isaacscript 4.0.7 → 4.0.8

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.
@@ -175,7 +175,22 @@ const SUPPORTED_RULES = {
175
175
  /** Disabled since in it does not make sense to sort a union alphabetically in many cases. */
176
176
  "@typescript-eslint/sort-type-constituents": "off",
177
177
 
178
- "@typescript-eslint/strict-boolean-expressions": "error",
178
+ /** The `allowString` and `allowNumber` options are disabled to make the rule stricter. */
179
+ "@typescript-eslint/strict-boolean-expressions": [
180
+ "error",
181
+ {
182
+ allowString: false,
183
+ allowNumber: false,
184
+ allowNullableObject: true,
185
+ allowNullableBoolean: false,
186
+ allowNullableString: false,
187
+ allowNullableNumber: false,
188
+ allowNullableEnum: false,
189
+ allowAny: false,
190
+ allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false,
191
+ },
192
+ ],
193
+
179
194
  "@typescript-eslint/switch-exhaustiveness-check": "error",
180
195
  "@typescript-eslint/triple-slash-reference": "error",
181
196
  "@typescript-eslint/type-annotation-spacing": "off", // eslint-config-prettier
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-isaacscript",
3
- "version": "4.0.7",
3
+ "version": "4.0.8",
4
4
  "description": "A sharable ESLint config for TypeScript and IsaacScript projects.",
5
5
  "keywords": [
6
6
  "eslint",