diff options
| author | Adam Millerchip <[email protected]> | 2025-08-28 14:38:40 +0900 |
|---|---|---|
| committer | Adam Millerchip <[email protected]> | 2025-08-28 14:38:40 +0900 |
| commit | f16c1401b3dec586453547e9497b4b555361898d (patch) | |
| tree | 6995bb31ddf669bf391a62e726b26033aa02cced | |
| parent | 6d09ce3e39c4e48d756d83e7b51583676939a5a7 (diff) | |
| download | ai-pulse-obsidian-plugin-f16c1401b3dec586453547e9497b4b555361898d.tar.gz ai-pulse-obsidian-plugin-f16c1401b3dec586453547e9497b4b555361898d.zip | |
Prefix unused variables with _
| -rw-r--r-- | main.ts | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -17,7 +17,7 @@ export default class MyPlugin extends Plugin { await this.loadSettings(); // This creates an icon in the left ribbon. - const ribbonIconEl = this.addRibbonIcon('dice', 'Sample Plugin', (evt: MouseEvent) => { + const ribbonIconEl = this.addRibbonIcon('dice', 'Sample Plugin', (_evt: MouseEvent) => { // Called when the user clicks the icon. new Notice('This is a notice!'); }); @@ -40,7 +40,7 @@ export default class MyPlugin extends Plugin { this.addCommand({ id: 'sample-editor-command', name: 'Sample editor command', - editorCallback: (editor: Editor, view: MarkdownView) => { + editorCallback: (editor: Editor, _view: MarkdownView) => { console.log(editor.getSelection()); editor.replaceSelection('Sample Editor Command'); } |
