Skip to content

0.16.1: pre-submission fixes for Obsidian's community directory

Choose a tag to compare

@zymetm zymetm released this 29 Sep 00:14
· 8 commits to main since this release

From an eslint-plugin-obsidianmd (0.4.2, recommended config) run
against 0.16.0:

  1. Both settings headings that named the plugin drop the name: "Add
    Spotlight to this directory" -> "Add a directory"; "Active
    Spotlight directories" -> "Active directories". Obsidian's own
    guidelines forbid a plugin naming itself in its settings UI.
  2. Every bare setTimeout/clearTimeout call (9 sites) now goes through
    window.setTimeout/window.clearTimeout.
  3. Sentence case: "SPOTLIGHT shelf" -> "Spotlight shelf" (two strings),
    "Go to the Add field" -> "Go to the add field". Proper-noun
    "Spotlight" strings (e.g. "Remove from Spotlight") are left alone.
  4. Two unused catch (err) bindings become bare catch {}.

No build script added, no change to the require() at the top of the
file, no other behavior change. Test harness: loadPlugin() now injects
a window exposing the four timer functions, each reading
globalThis.<name> at call time so a test using Node's own mock
timers still reaches the mock instead of a stale captured reference.

339/339 tests (same count as 0.16.0).

Also adds two 1200x800 PNG screenshots for the community plugin
listing under docs/images/listing/ (cropped/composited from the
existing README screenshots; the README images themselves are
untouched).

Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com