Chore: Replace ESLint and Prettier with Oxlint and Oxfmt - #339
Merged
Conversation
- 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
Greptile SummaryThe PR replaces ESLint and Prettier with Oxlint and Oxfmt, updates staged-file automation, and modernizes Husky setup.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| 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
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.
Replace ESLint + Prettier with Oxlint + Oxfmt, matching the ya-disk project setup. Fixes deprecated husky install command.
Changes
eslint,eslint-config-prettier,eslint-plugin-prettier,prettieroxlint1.77.0 andoxfmt0.62.0oxlint.config.mjsandoxfmt.config.mjs.eslintrcand.prettierrcoxlint --fix+oxfmton staged filesformatandformat:checkscriptshusky installwithhuskyand remove deprecated husky.sh sourcing from hooksCloses #327