chore(tooling): migrate from ESLint + Prettier to oxc ecosystem (oxlint + oxfmt)#1488
Merged
kaizhou-lab merged 3 commits intomainfrom Mar 19, 2026
Merged
chore(tooling): migrate from ESLint + Prettier to oxc ecosystem (oxlint + oxfmt)#1488kaizhou-lab merged 3 commits intomainfrom
kaizhou-lab merged 3 commits intomainfrom
Conversation
…nt + oxfmt) - Replace ESLint with oxlint (v1.56.0) for 50-100x faster linting - Replace Prettier with oxfmt (v0.41.0) for 30x faster formatting - Add .oxlintrc.json with equivalent rules from .eslintrc.json - Add .oxfmtrc.json with equivalent options from .prettierrc.json - Update package.json scripts, devDependencies, and lint-staged config - Update .pre-commit-config.yaml hooks - Update AGENTS.md, CODE_STYLE.md, and CI workflow references - Remove .eslintrc.json, .eslintignore, .prettierrc.json, .prettierignore - Auto-format all files with oxfmt for consistent baseline
- Remove useless fallback in spread patterns (|| {} / ?? {}) across 15 files
- Fix no-constant-binary-expression: comment out dead code block in WebuiModalContent
- Fix no-thenable: add eslint-disable for intentional Deferred class
- Fix no-empty-file: add eslint-disable for worker entry points
- Fix no-eval: add eslint-disable for intentional dynamic require
- Fix no-single-promise-in-promise-methods: unwrap single-element Promise.all
- Fix no-irregular-whitespace: remove BOM from ConversationSearchPopover
- Fix no-unused-expressions: clean up comma expression in test assertion
- Fix no-useless-empty-export: remove unnecessary export {} from electron.ts
kaizhou-lab
approved these changes
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.
Summary
Migrate the entire lint and formatting toolchain from ESLint + Prettier to the oxc ecosystem (oxlint + oxfmt).
Motivation
Changes
New Files
.oxlintrc.json— Oxlint configuration (replaces.eslintrc.json).oxfmtrc.json— Oxfmt configuration (replaces.prettierrc.json)Removed Files
.eslintrc.json.eslintignore.prettierrc.json.prettierignoreUpdated Files
package.json— Updated scripts (lint,lint:fix,format,format:check), replaced devDependencies, updatedlint-stagedconfig.pre-commit-config.yaml— Replaced ESLint/Prettier hooks with oxlint/oxfmt hooks.github/workflows/pr-checks.yml— Updated commentsAGENTS.md/CODE_STYLE.md— Documentation updated to reference oxlint/oxfmtDependency Changes
Removed:
eslint,@typescript-eslint/eslint-plugin,@typescript-eslint/parsereslint-config-prettier,eslint-plugin-prettier,eslint-plugin-importprettierAdded:
oxlint(v1.56.0)oxfmt(v0.41.0)Verification
oxfmt --checkpasses (all files formatted)oxlintruns successfully (existing code warnings preserved, no new issues)Migration Notes