-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(eslint-plugin): [switch-exhaustiveness-check] add support for "n…
…o default" comment (#10218) * feat: no default comment * feat: considerDefaultExhaustiveForUnions option apply * feat: apply regex in no default * fix: test case fix * fix: add defalutCaseCommentPattern option * feat: add testcase and docs * fix:test case * fix: code review apply * Update test snapshots * Update packages/eslint-plugin/docs/rules/switch-exhaustiveness-check.mdx * Fix regex complaint in code block * update test snapshots in general * Apply suggestions from code review --------- Co-authored-by: Josh Goldberg <[email protected]>
- Loading branch information
1 parent
772bd43
commit 47f1ab3
Showing
5 changed files
with
233 additions
and
9 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
24 changes: 19 additions & 5 deletions
24
packages/eslint-plugin/tests/docs-eslint-output-snapshots/switch-exhaustiveness-check.shot
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
6 changes: 6 additions & 0 deletions
6
packages/eslint-plugin/tests/schema-snapshots/switch-exhaustiveness-check.shot
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.