Skip to content

build: migrate from ESLint to oxlint#211

Merged
sbroenne merged 1 commit into
mainfrom
stbrnner-microsoft/migrate-to-oxlint
Jun 11, 2026
Merged

build: migrate from ESLint to oxlint#211
sbroenne merged 1 commit into
mainfrom
stbrnner-microsoft/migrate-to-oxlint

Conversation

@sbroenne

Copy link
Copy Markdown
Owner

Summary

Replaces the ESLint toolchain with oxlint for much faster linting.

Changes

  • Add .oxlintrc.json porting the previous ESLint rule set (general code-quality, TypeScript, and Vitest test overrides, plus src/** and *.cjs overrides).
  • Update lint / lint:fix scripts and lint-staged to use oxlint.
  • Remove ESLint devDependencies: eslint, @eslint/js, eslint-config-prettier, typescript-eslint, @vitest/eslint-plugin, globals.
  • Delete eslint.config.mjs.
  • Update README references.

Notes

Type-aware rules from the old config (no-floating-promises, await-thenable, prefer-nullish-coalescing, prefer-optional-chain, no-unnecessary-type-assertion) are not ported — oxlint does not run the type checker. tsc --noEmit continues to cover type safety.

Verification

  • npm run lint exits 0 (only pre-existing non-null-assertion warnings)
  • npm run typecheck passes
  • npm test -> 540 unit tests pass

Merge via Squash and merge.

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

Replace ESLint toolchain with oxlint for faster linting.

- Add .oxlintrc.json mapping the prior ESLint rule set
- Update lint / lint:fix scripts and lint-staged to use oxlint
- Remove eslint, @eslint/js, eslint-config-prettier, typescript-eslint,
  @vitest/eslint-plugin, and globals devDependencies
- Delete eslint.config.mjs
- Update README references

Type-aware rules (no-floating-promises, await-thenable,
prefer-nullish-coalescing, prefer-optional-chain,
no-unnecessary-type-assertion) are not ported since oxlint does not run
the type checker; tsc --noEmit continues to cover type safety.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@sbroenne sbroenne merged commit e9605e6 into main Jun 11, 2026
3 checks passed
@sbroenne sbroenne deleted the stbrnner-microsoft/migrate-to-oxlint branch June 11, 2026 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant