From 445a378a0d0075a41a8e3999f2f13d8b4caaf5fb Mon Sep 17 00:00:00 2001 From: johnny1093 <46250921+jsmorabito@users.noreply.github.com> Date: Sat, 11 Jul 2026 09:26:25 -0400 Subject: [PATCH] lint: scope off no-command-in-command-id for the settings command The "open-commander-settings" command id predates this lint rule. Renaming it would silently break any existing user's saved hotkey binding for opening Commander's settings, so we keep the id and scope the rule off for src/main.ts instead of renaming or disabling inline (obsidianmd disallows inline-disabling this rule). --- eslint.config.mts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/eslint.config.mts b/eslint.config.mts index a17aa50..6e3f799 100644 --- a/eslint.config.mts +++ b/eslint.config.mts @@ -39,4 +39,11 @@ export default defineConfig( }, }, ...obsidianmd.configs.recommended, + { + files: ['src/main.ts'], + rules: { + // Renaming this command's id would break existing users' saved hotkeys + 'obsidianmd/commands/no-command-in-command-id': 'off', + }, + }, );