Migrate linting from ESLint + oxlint to single oxlint config#167
Draft
Migrate linting from ESLint + oxlint to single oxlint config#167
Conversation
Co-authored-by: Amund211 <14028449+Amund211@users.noreply.github.com>
Deploying rainbow with
|
| Latest commit: |
e1e767a
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://e69c3435.rainbow-ctx.pages.dev |
| Branch Preview URL: | https://copilot-migrate-to-oxlint-co.rainbow-ctx.pages.dev |
Copilot
AI
changed the title
[WIP] Migrate to best-practice oxlint configuration with rule-coverage
Migrate linting to oxlint with matching ESLint rule coverage
Mar 19, 2026
Co-authored-by: Amund211 <14028449+Amund211@users.noreply.github.com>
Co-authored-by: Amund211 <14028449+Amund211@users.noreply.github.com>
Copilot
AI
changed the title
Migrate linting to oxlint with matching ESLint rule coverage
Replace ESLint with single oxlint config using categories and JS plugins
Mar 19, 2026
… spreading Co-authored-by: Amund211 <14028449+Amund211@users.noreply.github.com>
…react-compiler Co-authored-by: Amund211 <14028449+Amund211@users.noreply.github.com>
… guards, clean up test files Co-authored-by: Amund211 <14028449+Amund211@users.noreply.github.com>
Copilot
AI
changed the title
Replace ESLint with single oxlint config using categories and JS plugins
Migrate linting from ESLint + oxlint to single oxlint config
Mar 19, 2026
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.
Replaces the dual ESLint + oxlint setup with a single
oxlint.config.ts. ESLint and all its associated packages are removed. Rules that oxlint can't cover natively are handled via oxlint's JS plugin support.Strategy
correctness: "error"andsuspicious: "warn"replace ~100 individually listed rules.typescriptandreact(which includes react-hooks) cover TypeScript and React rule sets natively.eslint-plugin-react-hooks(v7 absorbed the React Compiler rules from the now-removedeslint-plugin-react-compiler)@tanstack/eslint-plugin-queryreact-hooksalias requirementreact-hooksis a reserved name in oxlint (bundled into the nativereactplugin), so the JS plugin must be aliased:Rules derived from plugin recommended configs
Instead of hardcoding individual rules, both JS plugins' recommended configs are spread dynamically. The
rulesblock contains only overrides:Validation guards throw if either extraction produces an empty rule set, catching plugin API changes early.
Coverage gaps vs. original ESLint
strictTypeChecked)tscstill enforces type safetyreact-refresh/only-export-components@typescript-eslint/no-deprecatedLevers for adjusting rule coverage
suspicious: "warn"; or turn off specific rulesplugins:"import","promise","unicorn","jsx-a11y","react-perf","node""react-perf"toplugins+perf: "warn"tocategories(expect many warnings on inline JSX)jsPlugins— any ESLint v9-compatible plugin workssuspicious: "warn"→"error"✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.