Skip to content

Commit ff10715

Browse files
authored
Merge pull request #5 from geprog/enable-strict-boolean-expressions
feat: enable @typescript-eslint/strict-boolean-expressions
2 parents 9811540 + 7d10b7f commit ff10715

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

index.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,21 @@ const eslintConfig = {
7474
{
7575
files: ['**/*.{ts,vue}'],
7676
extends: ['plugin:@typescript-eslint/recommended-requiring-type-checking'],
77+
rules: {
78+
'@typescript-eslint/strict-boolean-expressions': [
79+
'error',
80+
{
81+
allowString: false,
82+
allowNumber: false,
83+
allowNullableObject: false,
84+
allowNullableBoolean: false,
85+
allowNullableString: false,
86+
allowNullableNumber: false,
87+
allowAny: false,
88+
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false,
89+
},
90+
],
91+
},
7792
},
7893
],
7994
reportUnusedDisableDirectives: true,

0 commit comments

Comments
 (0)