build: migrate from ESLint to oxlint#211
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaces the ESLint toolchain with oxlint for much faster linting.
Changes
eslint,@eslint/js,eslint-config-prettier,typescript-eslint,@vitest/eslint-plugin,globals.eslint.config.mjs.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 --noEmitcontinues to cover type safety.Verification
npm run lintexits 0 (only pre-existing non-null-assertion warnings)npm run typecheckpassesnpm test-> 540 unit tests passMerge via Squash and merge.
Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com