Skip to content

Chore: Replace ESLint and Prettier with Oxlint and Oxfmt - #339

Merged
RomiC merged 3 commits into
mainfrom
migrate-to-oxlint
Aug 7, 2026
Merged

Chore: Replace ESLint and Prettier with Oxlint and Oxfmt#339
RomiC merged 3 commits into
mainfrom
migrate-to-oxlint

Conversation

@RomiC

@RomiC RomiC commented Aug 7, 2026

Copy link
Copy Markdown
Owner

Replace ESLint + Prettier with Oxlint + Oxfmt, matching the ya-disk project setup. Fixes deprecated husky install command.

Changes

  • Remove eslint, eslint-config-prettier, eslint-plugin-prettier, prettier
  • Add oxlint 1.77.0 and oxfmt 0.62.0
  • Add oxlint.config.mjs and oxfmt.config.mjs
  • Delete .eslintrc and .prettierrc
  • Update lint-staged to run oxlint --fix + oxfmt on staged files
  • Add format and format:check scripts
  • Replace deprecated husky install with husky and remove deprecated husky.sh sourcing from hooks

Closes #327

RomiC added 2 commits August 7, 2026 15:52
- Remove eslint, eslint-config-prettier, eslint-plugin-prettier, prettier
- Add oxlint 1.77.0 and oxfmt 0.62.0
- Add oxlint.config.mjs and oxfmt.config.mjs (matching ya-disk project)
- Delete .eslintrc and .prettierrc
- Update lint-staged to run oxlint --fix + oxfmt on staged files
- Add format and format:check scripts
- Replace "husky install" with "husky" in prepare script
- Remove deprecated husky.sh sourcing from git hooks
@coveralls

coveralls commented Aug 7, 2026

Copy link
Copy Markdown

Coverage Status

Coverage is 100.0%migrate-to-oxlint into main. No base build found for main.

@greptile-apps

greptile-apps Bot commented Aug 7, 2026

Copy link
Copy Markdown

Greptile Summary

The PR replaces ESLint and Prettier with Oxlint and Oxfmt, updates staged-file automation, and modernizes Husky setup.

  • Adds Oxlint and Oxfmt configuration and package scripts.
  • Updates lint-staged to lint and format JavaScript modules.
  • Removes obsolete ESLint, Prettier, and Jest-mock files.
  • Removes deprecated Husky hook initialization.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
oxlint.config.mjs Configures Oxlint correctness checks and Node built-in globals; the obsolete Jest mock that caused the prior lint failure has been removed safely.
oxfmt.config.mjs Recreates the repository’s formatting preferences with Oxfmt and excludes generated output directories.
package.json Replaces ESLint and Prettier scripts and dependencies with Oxlint and Oxfmt and updates Husky preparation.
lib/mocks/followRedirect.js Removes an unused legacy Jest manual mock after the project migrated to Node’s built-in test runner.
package-lock.json Regenerates the dependency lockfile for the new linting and formatting toolchain.

Reviews (2): Last reviewed commit: "Chore: Remove leftover lib/__mocks__ dir..." | Re-trigger Greptile

Comment thread oxlint.config.mjs
@RomiC RomiC self-assigned this Aug 7, 2026
@RomiC
RomiC merged commit d468012 into main Aug 7, 2026
8 checks passed
@RomiC
RomiC deleted the migrate-to-oxlint branch August 7, 2026 13:12
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.

Migrate from ESLint to Oxlint

2 participants