Turn on upper-snake-string-unions and convert profile types, failure reasons and anchor sides at their boundaries

This commit is contained in:
Danny Kim
2026-10-19 19:46:31 +09:00
parent 71150900ff
commit c783935936
13 changed files with 144 additions and 113 deletions
+2 -3
View File
@@ -257,9 +257,8 @@ const rules: DummyRuleMap = {
"consistent-return": "off",
// TypeScript's type checking covers exhaustive switches.
"typescript/switch-exhaustiveness-check": "off",
// PENDING USER: union members are values in profiles.json, the Gitea API,
// and posted comments; renaming them changes behavior.
"explicit-types/upper-snake-string-unions": "off",
// A `default` on a switch over a union would hide a new member from TS.
"default-case": "off",
// Off, too much churn:
// Literal numbers read better than a constant per use.
"no-magic-numbers": "off",