rmccorkl_TubeSage/eslint-rules
Richard McCorkle 8800b98df4 fix(lint): carve out window timer calls in prefer-active-doc rule
The local prefer-active-doc rule flagged every `window` identifier as
preferring `activeWindow`. obsidianmd 0.3.0's new `prefer-window-timers`
rule requires the opposite for timer calls (`window.setTimeout` etc.),
so the two rules contradicted, leaving 11 unfixable warnings.

Add a `window.<timerMethod>` carve-out to the local rule, mirroring the
same exception in upstream eslint-plugin-obsidianmd's prefer-active-doc.
Lint now reports 0 warnings (4 errors remain: intentional brand-name
casing left per project decision).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-17 07:48:09 +02:00
..
prefer-active-doc-fixed.mjs fix(lint): carve out window timer calls in prefer-active-doc rule 2026-05-17 07:48:09 +02:00