Skip to content

chore(docs): reduce lint dependencies with Oxlint - #30180

Merged
nwparker merged 1 commit into
mainfrom
nwparker/deps-docs-oxlint
Oct 18, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/deps-docs-oxlint

Conversation

@nwparker

@nwparker nwparker commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 0 0 0 0
Prod 5 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​331 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2845 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2514

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

  • I manually tested these changes locally on macOS arm64 with Node 24.20.0 and pnpm 10.34.6. Docs CI also validates the package's declared Node 22 runtime.
  • Frozen install, docs lint, all 16 existing tests, TypeScript check and production build passed.
  • Temporary invalid-code fixtures confirmed hooks violations, missing Next Image alt text, invalid ARIA values, missing Next inline-script IDs and missing JSX keys are reported. No permanent fixture tests were added for this configuration-only migration.
  • Changed-code quality gate and whitespace checks passed.

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

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

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

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@nwparker
nwparker merged commit 68808db into main Oct 18, 2026
22 checks passed
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.

1 participant