mirror of
https://github.com/jsmorabito/obsidian-commander.git
synced 2026-07-22 06:40:31 +00:00
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:
parent
8c08808823
commit
445a378a0d
1 changed files with 7 additions and 0 deletions
|
|
@ -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',
|
||||
},
|
||||
},
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue