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 an option to w…
…arn against a `default` case on an already exhaustive `switch` (#7539) * feat: switch-exhaustiveness-check checks for dangerous default case * fix: spelling * fix: comment * fix: docs * feat: allowDefaultCase option * fix: tests * fix: lint * fix: prettier * refactor: finish merge * fix: format * fix: lint * chore: update docs * chore: update docs * chore: format * fix: test * fix: tests * fix: tests * fix: tests * fix: test * fix: test * fix: tests * Update packages/eslint-plugin/src/rules/switch-exhaustiveness-check.ts Co-authored-by: Josh Goldberg ✨ <git@joshuakgoldberg.com> * fix: double options in docs * Update packages/eslint-plugin/docs/rules/switch-exhaustiveness-check.md Co-authored-by: Josh Goldberg ✨ <git@joshuakgoldberg.com> * feat: simplify code flow * Update packages/eslint-plugin/src/rules/switch-exhaustiveness-check.ts Co-authored-by: Josh Goldberg ✨ <git@joshuakgoldberg.com> * fix: grammar * Update packages/eslint-plugin/src/rules/switch-exhaustiveness-check.ts Co-authored-by: Josh Goldberg ✨ <git@joshuakgoldberg.com> * fix: wording on option * Update packages/eslint-plugin/docs/rules/switch-exhaustiveness-check.md Co-authored-by: Josh Goldberg ✨ <git@joshuakgoldberg.com> * docs: add playground link * Update packages/eslint-plugin/src/rules/switch-exhaustiveness-check.ts Co-authored-by: Josh Goldberg ✨ <git@joshuakgoldberg.com> * chore: add punctuation * Update packages/eslint-plugin/src/rules/switch-exhaustiveness-check.ts Co-authored-by: Josh Goldberg ✨ <git@joshuakgoldberg.com> * chore: remove comment * refactor: rename option * fix: prettier * fix: lint * fix: tests * refactor: better metadata * fix: tests * refactor: rename interface * refactor: make interface readonly --------- Co-authored-by: Josh Goldberg ✨ <git@joshuakgoldberg.com>
- Loading branch information