mirror of
https://github.com/fancive/obsidian-parallel-reader.git
synced 2026-07-22 06:53:43 +00:00
Add eslint v9 + @typescript-eslint/parser + eslint-plugin-obsidianmd as
a dedicated `npm run lint:obsidian` track, separate from the existing
biome lint. Apply autofixes from the recommended config and resolve the
follow-on type/test issues.
- prefer-create-el: createEl('div'/'span') -> createDiv/createSpan
- prefer-active-window-timers: setTimeout/clearTimeout -> activeWindow.*
+ retype timer holders from ReturnType<typeof setTimeout> to number
- prefer-active-doc: drop globalThis.fetch in streaming
- no-useless-catch: drop no-op rethrow wrapper
- no-restricted-globals: streaming.ts is exempted because requestUrl
does not support streaming responses
- @typescript-eslint/no-unsafe-*: disabled (out of scope for an Obsidian
plugin lint pass; tsc + biome already cover type safety)
- tests: polyfill globalThis.activeWindow so unit tests still run in Node
Change-Id: I43cc652e29a66d490e2834e940843c39b211b80b
|
||
|---|---|---|
| .. | ||
| anchor.test.js | ||
| architecture.test.js | ||
| cache.test.js | ||
| cards-nav.test.js | ||
| catalog.json | ||
| cli.test.js | ||
| direct-batch.test.js | ||
| direct-cache.test.js | ||
| direct-generation.test.js | ||
| direct-i18n.test.js | ||
| direct-markdown.test.js | ||
| direct-prompt.test.js | ||
| direct-providers.test.js | ||
| direct-settings-extra.test.js | ||
| direct-settings.test.js | ||
| direct-streaming.test.js | ||
| direct-test-setup.js | ||
| generation-job-manager.test.js | ||
| i18n.test.js | ||
| markdown.test.js | ||
| obsidian-mock.js | ||
| plugin-batch.test.js | ||
| providers.test.js | ||
| schema.test.js | ||
| scroll.test.js | ||
| settings.test.js | ||
| streaming.test.js | ||
| test-exports.test.js | ||
| test-setup.js | ||
| vault-batch.test.js | ||
| view-render.test.js | ||