Files
Alexander Lichter cef3dd05aa chore: improve oxlint example (#83898)
Follow-up of https://github.com/vercel/next.js/pull/83842

This PR adds the `eslint` plugin which enforces eslint-core rules, as
well as defines `ignorePatterns` that should work well with Next.js by
default

---------

Co-authored-by: Joseph <joseph.chamochumbi@vercel.com>
2025-09-18 13:42:05 +02:00
..

Oxlint Example

This example shows how to configure Oxlint to work with a Next.js application.

Linting via Oxlint in this example includes type-aware linting through the oxlint-tsgolint integration, which is in technical preview at the time of writing.

In .oxlintrc.json, the plugins eslint, react, unicorn, typescript, nextjs, and oxc are enabled.

The first five are Rust-based Oxlint plugins that port rules from the ESLint core and the corresponding ESLint plugins.

The oxc plugin provides Oxc-specific rules along with some rules ported from Deepscan.

Further, Oxlint will not lint your .next, dist, build and node_modules directories based on the configured ignorePatterns.

Deploy your own

Deploy with Vercel

How to use

Execute create-next-app with npm, Yarn, or pnpm to bootstrap the example:

npx create-next-app --example with-oxlint with-oxlint-app
yarn create next-app --example with-oxlint with-oxlint-app
pnpm create next-app --example with-oxlint with-oxlint-app

Linting the application

npm run lint
yarn lint
pnpm lint

Deploy it to the cloud with Vercel (Documentation).