Deploy & Ops
Add oxlint as a fast, zero-error lint gate alongside a Next.js project: config, an autofix pass, and the errors-fail warnings-advisory split that keeps CI honest.
1 file
Description
Add oxlint as a fast, zero-error lint gate alongside a Next.js project: config, an autofix pass, and the errors-fail warnings-advisory split that keeps CI honest.
A project where ESLint is too slow to run on every commit, or you want a sub-second lint pass that gates pushes without waiting on a full typecheck.
Oxlint is written in Rust and runs a large rule set in a fraction of ESLint's time, so it is cheap enough to run on every commit. It does not replace your type gate; it catches a different, faster class of issue (unused vars, obvious mistakes, correctness lints).
Add the scripts:
{ "scripts": { "lint:ox": "oxlint", "lint:ox:fix": "oxlint --fix" } }
Configure rules in .oxlintrc.json at the repo root. Start from the recommended set and tighten from there.
Adopt the rule: pnpm lint:ox must report zero errors before a commit. Warnings are advisory, not blocking, so the signal-to-noise stays high and a red error always means something.
Run pnpm lint:ox:fix to auto-apply the safe fixes, then review the diff before committing.
lint:ox (fast, zero errors).tsc --noEmit or the native preview) plus the build. Oxlint is not a type checker; keep both.--fix and committing without reading the diff can apply an unwanted change. Review autofixes..oxlintrc.json runs a minimal rule set and quietly under-lints. Commit an explicit config.Related
Added 2026-07-01. Back to the Skill Library.

New tutorials, open-source projects, and deep dives on coding agents - delivered weekly.