1
0
forked from mirrors/0ad

Enable eslint rule 'no-fallthrough'

Enable recommended rule 'no-fallthrough' [1] and manually fix violations.

[1] https://eslint.org/docs/latest/rules/no-fallthrough

Ref: #8068
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
Ralph Sennhauser
2025-06-14 12:27:36 +02:00
parent 57e72b01ae
commit f87d266e4e
2 changed files with 2 additions and 1 deletions
@@ -188,7 +188,7 @@ ChatMessageFormatSimulation.flare = class
case "observer":
if (!g_IsObserver)
return "";
break;
default:
break;
}
+1
View File
@@ -49,6 +49,7 @@ const configEslintRecommended = {
"no-empty-static-block": "warn",
"no-ex-assign": "warn",
"no-extra-boolean-cast": "warn",
"no-fallthrough": "warn",
"no-func-assign": "warn",
"no-global-assign": "warn",
"no-import-assign": "warn",