0.16.1: pre-submission fixes for Obsidian's community directory
From an eslint-plugin-obsidianmd (0.4.2, recommended config) run
against 0.16.0:
- 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. - Every bare setTimeout/clearTimeout call (9 sites) now goes through
window.setTimeout/window.clearTimeout. - 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. - Two unused
catch (err)bindings become barecatch {}.
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