Commit 13fa668
committed
chore(lint): migrate from eslint to oxlint
oxlint runs the same policy surface in ~1s with no typescript peer
constraint of its own:
- typescript/unicorn/oxc/import plugins + correctness category cover
the old js/ts recommended sets; consistent-type-imports,
no-unused-vars(args:none) and import/no-duplicates carried over
- eslint-plugin-obsidianmd runs unchanged via oxlint jsPlugins (all 7
guideline rules verified firing, incl. nested-name rules) along with
the no-restricted-globals app/fetch/localStorage policy
- eslint itself remains only as an internal dependency of
eslint-plugin-obsidianmd; our direct eslint/typescript-eslint/
import-x devDeps and eslint.config.mjs are gone
Fixes for real issues oxlint surfaced that eslint missed:
- main.ts imported ./store twice via different specifiers (src/store
and ./store) - merged
- useless {} fallbacks in loadedData spreads (main.ts)
- ambiguous new Array(n) in assertFetchableUrl + TranscriptionService
- unsafe optional-chain calls in main.activateView.test.ts
Svelte files are excluded (parity with the old ts-only eslint globs;
svelte-check owns those).1 parent c177485 commit 13fa668
8 files changed
Lines changed: 76 additions & 695 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
This file was deleted.
0 commit comments