From 380851dd3c19568ad37b853e5f2d9723019de484 Mon Sep 17 00:00:00 2001 From: Erin Schnabel Date: Tue, 7 Oct 2025 15:15:04 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20obsidian=20plugin=20recommendati?= =?UTF-8?q?ons;=20revised=20tsconfig?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/flashcards-SettingsTab.ts | 12 ++++++------ tsconfig.json | 16 ++++++++++++++++ 2 files changed, 22 insertions(+), 6 deletions(-) create mode 100644 tsconfig.json diff --git a/src/flashcards-SettingsTab.ts b/src/flashcards-SettingsTab.ts index 746cb61..df04fbb 100644 --- a/src/flashcards-SettingsTab.ts +++ b/src/flashcards-SettingsTab.ts @@ -33,7 +33,7 @@ export class SimpleFlashcardsSettingsTab extends PluginSettingTab { const { containerEl } = this; containerEl.empty(); - containerEl.createEl("h2", { text: "Simple Flashcards Settings" }); + new Setting(containerEl).setHeading().setName("Simple Flashcards"); new Setting(containerEl) .setName("Save Settings") @@ -138,15 +138,15 @@ export class SimpleFlashcardsSettingsTab extends PluginSettingTab { }), ); - containerEl.createEl("h3", { text: "Usage" }); - const usage = containerEl.createEl("div"); - usage.createEl("p", { + new Setting(containerEl).setHeading().setName("Usage"); + + containerEl.createEl("p", { text: "Cards are created from markdown files with H2 headings (##). Each heading becomes one card.", }); - usage.createEl("p", { + containerEl.createEl("p", { text: "Use --- (horizontal rule) to mark the end of card content. Anything after --- will be ignored.", }); - usage.createEl("p", { + containerEl.createEl("p", { text: "Lines starting with #flashcards will be stripped from card display.", }); } diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..e606111 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,16 @@ +{ + "compilerOptions": { + "target": "ES2018", + "module": "ESNext", + "lib": ["ES2018", "DOM"], + "moduleResolution": "bundler", + "allowJs": true, + "noEmit": true, + "strict": true, + "esModuleInterop": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + "resolveJsonModule": true + }, + "include": ["src/**/*"] +}