Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
feat(eslint-plugin): [strict-boolean-expressions] add allow nullable …
…enum to strict boolean expressions (#6096) * feat: add allowNullableEnum option * test: add allowNullableEnum option * fix: lint error * chore: erase indent diff * fix: error column number * test: fix output * test: fix output format * test: add !nullableEnum pattern * Update packages/eslint-plugin/src/rules/strict-boolean-expressions.ts Co-authored-by: Josh Goldberg <git@joshuakgoldberg.com> * Update packages/eslint-plugin/tests/rules/strict-boolean-expressions.test.ts Co-authored-by: Josh Goldberg <git@joshuakgoldberg.com> * chore: yarn lint --fix * perf: use some instead of length * test: fix output * test: split into two cases * docs: add allowNullableEnum * Update packages/eslint-plugin/src/rules/strict-boolean-expressions.ts Co-authored-by: Josh Goldberg <git@joshuakgoldberg.com> * perf: use some instead of filter * Update packages/eslint-plugin/docs/rules/strict-boolean-expressions.md Co-authored-by: Josh Goldberg <git@joshuakgoldberg.com> * Update packages/eslint-plugin/docs/rules/strict-boolean-expressions.md Co-authored-by: Josh Goldberg <git@joshuakgoldberg.com> * Update packages/eslint-plugin/src/rules/strict-boolean-expressions.ts Co-authored-by: Josh Goldberg <git@joshuakgoldberg.com> * test: add case * fix: add string condition * Fix lil lint issue * Test fix --------- Co-authored-by: Josh Goldberg <git@joshuakgoldberg.com>
- Loading branch information
1 parent
f330e06
commit d4747cd
Showing
3 changed files
with
233 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters