Turn on upper-snake-string-unions and convert profile types, failure reasons and anchor sides at their boundaries
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user