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).
This commit is contained in:
johnny1093 2026-07-11 09:26:25 -04:00
parent 8c08808823
commit 445a378a0d

View file

@ -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',
},
},
);