summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJohannes Theiner <[email protected]>2025-09-17 18:12:44 +0200
committerGitHub <[email protected]>2025-09-17 18:12:44 +0200
commite2a64e0534ec6cdfacaa2e70da3d65eca2776edb (patch)
tree503c6b736752ebe5aa954b977d7fae80fc3d05e6
parent8933f6ce64c0402315f145cf5cc32ea0bd65236e (diff)
parentf16c1401b3dec586453547e9497b4b555361898d (diff)
downloadai-pulse-obsidian-plugin-e2a64e0534ec6cdfacaa2e70da3d65eca2776edb.tar.gz
ai-pulse-obsidian-plugin-e2a64e0534ec6cdfacaa2e70da3d65eca2776edb.zip
Merge pull request #151 from adamu/main
Prefix unused variables with _
-rw-r--r--main.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.ts b/main.ts
index 2d07212..471bc8e 100644
--- a/main.ts
+++ b/main.ts
@@ -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');
}