Chore: [#389] Migrate from ESLint/Prettier to Oxlint/Oxfmt - #398
Merged
Conversation
Greptile SummaryThis PR replaces ESLint/Prettier with the Rust-based Oxc toolchain (Oxlint + Oxfmt), removes 5 legacy dev-dependencies, and wires the new tools into lint-staged, husky hooks, and CI.
Confidence Score: 5/5Safe to merge — this is a pure tooling swap with no changes to library logic or public API. All changed files are dev-tooling configuration. The new configs are well-formed, all oxfmt options are verified as supported, and the lint-staged setup correctly passes staged files to the binaries. No functional code changes outside of reformatting and updating a disable comment. Files Needing Attention: No files require special attention.
|
| Filename | Overview |
|---|---|
| oxlint.config.ts | New oxlint config with plugins and category-based rules; overrides correctly disable import/no-default-export for *.config.ts files. |
| oxfmt.config.ts | New oxfmt config preserving Prettier settings; all options (arrowParens, bracketSpacing, trailingComma, etc.) are valid and supported by oxfmt. |
| package.json | ESLint/Prettier deps removed, oxlint and oxfmt added; lint-staged calls binaries directly (not via npm run), ensuring staged file arguments are forwarded correctly. |
| src/index.ts | ESLint disable comment updated to oxlint-disable-next-line; file reformatted by oxfmt with no functional changes. |
| .github/workflows/npm-test.yml | Added format:check step between lint and test; correct placement ensures formatting failures fail fast. |
| .github/workflows/npm-publish.yml | Added format:check step to match npm-test workflow; publish gate now verifies lint, formatting, and tests. |
| .husky/pre-commit | Simple pre-commit hook running npx lint-staged; correct since lint-staged is a devDependency. |
| .husky/pre-push | Pre-push hook runs npm test (which includes pretest build step); correct gate for push. |
Reviews (3): Last reviewed commit: "Chore: [#389] Remove `any` from combineQ..." | Re-trigger Greptile
RomiC
force-pushed
the
chore/389-migrate-to-oxlint-oxfmt
branch
from
August 2, 2026 06:01
943562d to
591fb70
Compare
- Swap ESLint/Prettier dev deps for oxlint and oxfmt - Add oxlint.config.ts and oxfmt.config.ts, remove old configs - Update scripts: lint/lint:fix -> oxlint, format/format:check -> oxfmt - Enable husky hooks (pre-commit lint-staged, pre-push tests) - Add format:check step to CI workflows - Reformat codebase with oxfmt
RomiC
force-pushed
the
chore/389-migrate-to-oxlint-oxfmt
branch
from
August 2, 2026 07:03
591fb70 to
fded10e
Compare
This was referenced Aug 2, 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.
Closes #389
Replace ESLint and Prettier with the Rust-based Oxc toolchain — Oxlint (linter, 50-100x faster) and Oxfmt (formatter).
Changes
oxlint@1.76.0andoxfmt@0.61.0oxlint.config.ts(rules mapped from the old ESLint config) andoxfmt.config.ts(preserves old Prettier settings: printWidth 120, singleQuote, no trailing commas; YAML keeps double quotes)lint/lint:fix→ oxlint,format/format:check→ oxfmtnpx lint-staged(oxlint --fix + oxfmt), pre-push runsnpm testformat:checkstep to both npm-test and npm-publish workflowseslint.config.js,.prettierrcand all ESLint/Prettier deps