State the agreed reason for turning default-case off
Check / check (pull_request) Successful in 58s

This commit is contained in:
Danny Kim
2026-10-19 23:36:54 +09:00
parent 8b9aedf911
commit d0cf8b93cb
+1 -1
View File
@@ -772,7 +772,7 @@ const rules: DummyRuleMap = {
"consistent-return": "off",
// TypeScript's type checking covers exhaustive switches.
"typescript/switch-exhaustiveness-check": "off",
// A `default` on a switch over a union would hide a new member from TS.
// TypeScript checks completeness; a forced `default:` hides missing cases.
"default-case": "off",
// Off, too much churn:
// Literal numbers read better than a constant per use.