Repository navigation
chore(docs): reduce lint dependencies with Oxlint - #30180
Merged
Merged
Conversation
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.
ELI5
Docs contributors get the same lint command with substantially fewer downloaded dependencies. Published documentation and deployment behavior stay the same.
What Changed
Replace the docs site's ESLint and Next ESLint configuration with Oxlint 1.88.0, matching the main app's current version. The isolated configuration preserves 56 native equivalents of the previous React, hooks, accessibility and Next rules at their existing severities, including alt text on Next Image components. Generated output remains excluded, and the obsolete resolver build permission is removed.
The lockfile falls from 1,000 to 737 distinct package versions: 283 are removed and 20 Oxlint/platform packages are added. Runtime versions, Vercel and its 13 overrides are unchanged.
Why
Use the repository's existing linter to remove the unsupported ESLint version and its parser/plugin graph. Keeping the available checks explicitly avoids replacing lint with a bare default configuration. The README documents the unavailable deprecated React API, React Compiler configuration/gating and relative location.assign diagnostics; this is not complete rule parity. JSX variable-use bookkeeping is handled by Oxlint's parser.
Linked Issue
Maintainer-requested supply-chain dependency reduction; no existing issue.
Visual Proof
N/A — tooling and dependency changes only; no rendered UI or interaction changes.
Testing
Lint preserves the four existing image warnings and adds one default advisory about the existing search dialog markup. No rules are disabled to pass. Existing Docs CI exercises install/lint/tests/typecheck/build; the PR Checks workflow retains its required aggregate without routing changes.
Review
Agent skill upstream boundary
Notes
No new overrides. The native Oxlint platform packages are lockfile-pinned with integrity hashes. This change does not clear the braces advisory because Vercel still requires it. No local/SSH execution or platform-specific app behavior changes.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)