liamcain_obsidian-lapel/scripts
Liam Cain 80c164f0dd build: migrate to ESLint 9 flat config with eslint-plugin-obsidianmd
Replaces .eslintrc.js + scripts/.eslintrc.json with a single
eslint.config.mts mirroring the obsidian sample plugin. Brings in the
modern typescript-eslint stack, including type-aware rules
(no-floating-promises, no-unsafe-*) and the Obsidian-conventions plugin.

Fixes the errors the new rules surface:
- settings.ts: replace manual h3 with Setting.setHeading(); void the
  fire-and-forget updateSettings call.
- index.ts: stop relying on Object.assign returning a widened any from
  the Promise<unknown> result of loadData().
- headingWidget.ts: narrow gutter event handlers from Event ->
  MouseEvent inside the body now that the new @codemirror/view types
  expect Event. Cast RangeSet.empty to the typed shape.
2026-05-12 09:11:53 -04:00
..
build-local.mjs build: load .env via node --env-file-if-exists 2026-05-12 08:58:49 -04:00