Skip to content

0.2.7 — pass Obsidian community-plugin lint

Choose a tag to compare

@davadev davadev released this 16 Jun 08:20
· 9 commits to main since this release
86aeae1

What's in 0.2.7

Address every Error-level finding from the Obsidian community-plugin review of 0.2.6 so the resubmission passes automated checks. Warnings and Recommendations remain for a follow-up release.

  • Drop diagnostic console.* calls in AiProviderService + StoryGenerator (rule no-console).
  • Replace (app as any).setting casts with a typed module augmentation (src/types/obsidian-internals.d.ts).
  • Rewrite onunload as a synchronous void method with an async IIFE; drop detachLeavesOfType so user leaf placement survives plugin disable/enable (rule obsidianmd/detach-leaves-in-onunload).
  • Swap 16 HTML headings in the settings tab for new Setting(...).setHeading() (rule obsidianmd/use-setting-heading).
  • Move 7 inline element styles in the Stats word-detail overlay + smart-preview text to dedicated CSS classes (rule obsidianmd/no-static-styles-assignment).
  • Add justifications to the two remaining no-constant-condition eslint-disable comments.
  • Bump minAppVersion 1.5.0 → 1.7.2 to cover the typed app.loadLocalStorage / app.saveLocalStorage / app.setting calls.

BRAT install

Add the repo as a beta plugin and BRAT will pick this prerelease up. Stable promotion happens after manual smoke testing.