🎨 obsidian plugin recommendations; revised tsconfig

This commit is contained in:
Erin Schnabel 2025-10-07 15:15:04 -04:00
parent a3087ac729
commit 380851dd3c
No known key found for this signature in database
2 changed files with 22 additions and 6 deletions

View file

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

16
tsconfig.json Normal file
View file

@ -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/**/*"]
}