Skip to content

Commit

Permalink
enabled strict-boolean-expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
Mephisto5558 committed Aug 20, 2024
1 parent eeb6a91 commit cac6934
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions configs/@typescript-eslint.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@
"no-misused-new": "error",
// "no-misused-promises": "off", // performance reasons (top 3 slowest)
"no-misused-promises": [
"error",
{
"checksVoidReturn": false
}
"error",
{
"checksVoidReturn": false
}
],
"no-mixed-enums": "error",
"no-namespace": "error",
Expand All @@ -109,7 +109,7 @@
"no-redundant-type-constituents": "error",
"no-require-imports": "off",
"no-restricted-imports": "off",
"no-restricted-types":"off",
"no-restricted-types": "off",
"no-shadow": [
"warn",
{
Expand Down Expand Up @@ -234,7 +234,18 @@
}
],
"return-await": "off",
"strict-boolean-expressions": "off",
"strict-boolean-expressions": [
"error",
{
"allowString": true,
"allowNumber": true,
"allowNullableObject": true,
"allowNullableBoolean": true,
"allowNullableString": true,
"allowNullableEnum": false,
"allowAny": true // definitely not optimal, but needed in js projects.
}
],
"switch-exhaustiveness-check": "error",
"triple-slash-reference": "warn",
"typedef": "warn",
Expand Down

0 comments on commit cac6934

Please sign in to comment.