From f87d266e4ee624e20947d194abb84ee285b3abf2 Mon Sep 17 00:00:00 2001 From: Ralph Sennhauser Date: Sat, 14 Jun 2025 12:27:36 +0200 Subject: [PATCH] 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 --- .../mods/public/gui/session/chat/ChatMessageFormatSimulation.js | 2 +- eslint.config.mjs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/binaries/data/mods/public/gui/session/chat/ChatMessageFormatSimulation.js b/binaries/data/mods/public/gui/session/chat/ChatMessageFormatSimulation.js index 5a0b957c70..6b51bac9db 100644 --- a/binaries/data/mods/public/gui/session/chat/ChatMessageFormatSimulation.js +++ b/binaries/data/mods/public/gui/session/chat/ChatMessageFormatSimulation.js @@ -188,7 +188,7 @@ ChatMessageFormatSimulation.flare = class case "observer": if (!g_IsObserver) return ""; - + break; default: break; } diff --git a/eslint.config.mjs b/eslint.config.mjs index 43067314d2..1511c802c2 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -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",