Skip to content

Commit

Permalink
fix(strict-boolean-expressions): add rule
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaStevens committed Jul 21, 2021
1 parent 25e66d8 commit c973802
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/plugins/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,19 @@ export const settings: Linter.Config = {
"@typescript-eslint/prefer-optional-chain": "warn",
"@typescript-eslint/prefer-string-starts-ends-with": "warn",
"@typescript-eslint/prefer-ts-expect-error": "warn",
"@typescript-eslint/strict-boolean-expressions": [
"error",
{
allowString: false,
allowNumber: false,
allowNullableObject: false,
allowNullableBoolean: false,
allowNullableString: false,
allowNullableNumber: false,
allowAny: false,
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false,
},
],
"@typescript-eslint/switch-exhaustiveness-check": "warn",
"@typescript-eslint/unified-signatures": "warn",
},
Expand Down

0 comments on commit c973802

Please sign in to comment.