🔧 Resolve oxlint warnings; defer stylistic rules to oxfmt
This commit is contained in:
1 parent
b3a4e14f45
commit
99fd85ca7e
5 files changed
+99
-67
No files matched your search
+21
-5
@@ -27,11 +27,27 @@ typescript-lib-starter-tiny => https://github.com/tmueller/typescript-lib-starte
|
||||
- `eslint/sort-keys` — handler/case order is semantic, not alphabetical.
|
||||
- `eslint/id-length` — `T`, `R`, `U`, `V` are standard TS generics.
|
||||
- `import/no-named-export` — false positive on library entry re-exports.
|
||||
For `*.test.ts` files additionally: `no-unused-expressions` (for
|
||||
`expectTypeOf(...)` calls), `no-empty-file` (we have a single import
|
||||
per test file in some cases), `import/no-nodejs-modules` (we use
|
||||
`node:test`/`node:assert`/`node:fs` intentionally), `eslint/no-magic-numbers`
|
||||
(literals in tests are fine).
|
||||
- Stylistic rules superseded by oxfmt (oxfmt is the canonical
|
||||
formatter; these rules either conflict with its output or
|
||||
duplicate features oxfmt already provides):
|
||||
- `eslint/one-var` — oxfmt uses comma-joined `const`
|
||||
declarations; oxlint wanted to split them.
|
||||
- `import/group-exports` — oxfmt keeps separate `export`
|
||||
statements as-is.
|
||||
- `import/exports-last` — statement ordering is up to oxfmt.
|
||||
- `eslint/sort-imports` — replaced by oxfmt's built-in
|
||||
`sortImports` (enabled in `.oxfmtrc.json`).
|
||||
- `import/consistent-type-specifier-style` — inline
|
||||
`import { type X, Y }` is intentional for grouping.
|
||||
- `unicorn/prefer-export-from` — conflicts with how the
|
||||
barrel `src/index.ts` re-exports through `src/match.ts`.
|
||||
- `typescript/method-signature-style` — method signatures
|
||||
in `interface` are conventional TS ergonomics.
|
||||
For `*.test.ts` files additionally: `no-unused-expressions` (for
|
||||
`expectTypeOf(...)` calls), `no-empty-file` (we have a single import
|
||||
per test file in some cases), `import/no-nodejs-modules` (we use
|
||||
`node:test`/`node:assert`/`node:fs` intentionally), `eslint/no-magic-numbers`
|
||||
(literals in tests are fine).
|
||||
- **Import sorting**: built into oxfmt (no separate plugin).
|
||||
- **cspell**: Basic spelling configuration. Words dictionary in `cspell.json`
|
||||
covers tooling names (`oxlint`, `oxfmt`, `oxc`, `nodenext`,
|
||||
|
||||
Reference in new issue
Block a user