diff --git a/examples/with-oxlint/.oxlintrc.json b/examples/with-oxlint/.oxlintrc.json index e9ba0dc2a2baa..0f9b496bf810d 100644 --- a/examples/with-oxlint/.oxlintrc.json +++ b/examples/with-oxlint/.oxlintrc.json @@ -1,4 +1,5 @@ { - "$schema": "./node_modules/oxlint/configuration_schema.json", - "plugins": ["react", "unicorn", "oxc", "typescript", "nextjs"] + "$schema": "https://raw.githubusercontent.com/oxc-project/oxc/refs/tags/oxlint_v1.16.0/npm/oxlint/configuration_schema.json", + "plugins": ["eslint", "react", "unicorn", "oxc", "typescript", "nextjs"], + "ignorePatterns": ["node_modules/**", ".next/**", "dist/**", "build/**"] } diff --git a/examples/with-oxlint/README.md b/examples/with-oxlint/README.md index d49b0031fc433..2179d9e76ae7a 100644 --- a/examples/with-oxlint/README.md +++ b/examples/with-oxlint/README.md @@ -4,12 +4,14 @@ This example shows how to configure [Oxlint](https://oxc.rs/docs/guide/usage/lin Linting via Oxlint in this example includes type-aware linting through the `oxlint-tsgolint` integration, which is [in technical preview](https://oxc.rs/blog/2025-08-17-oxlint-type-aware.html) at the time of writing. -In [`.oxlintrc.json`](./.oxlintrc.json), the plugins `react`, `unicorn`, `typescript`, `nextjs`, and `oxc` are enabled. +In [`.oxlintrc.json`](./.oxlintrc.json), the plugins `eslint`, `react`, `unicorn`, `typescript`, `nextjs`, and `oxc` are enabled. -The first four are [Rust-based Oxlint plugins](https://oxc.rs/docs/guide/usage/linter/plugins.html#supported-plugins) that port rules from the corresponding ESLint plugins. +The first five are [Rust-based Oxlint plugins](https://oxc.rs/docs/guide/usage/linter/plugins.html#supported-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](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/vercel/next.js/tree/canary/examples/with-oxlint&project-name=with-oxlint&repository-name=with-oxlint)