diff --git a/.changeset/healthy-countries-jump.md b/.changeset/healthy-countries-jump.md new file mode 100644 index 0000000..9f65aa9 --- /dev/null +++ b/.changeset/healthy-countries-jump.md @@ -0,0 +1,5 @@ +--- +"@virtual-live-lab/eslint-config": patch +--- + +Enable tseslint/strict-boolean-expressions diff --git a/packages/eslint-config/src/base/typescript.ts b/packages/eslint-config/src/base/typescript.ts index 385378a..74784e6 100644 --- a/packages/eslint-config/src/base/typescript.ts +++ b/packages/eslint-config/src/base/typescript.ts @@ -44,6 +44,13 @@ const tsConfig = tseslint.config({ "@typescript-eslint/no-unsafe-declaration-merging": "off", "@typescript-eslint/prefer-for-of": "off", "@typescript-eslint/prefer-function-type": "off", + // #97 + "@typescript-eslint/strict-boolean-expressions": [ + "error", + { + allowNumber: false, + }, + ], }, });