From 764e236b94ca39fe47b1e112a354279888d3e214 Mon Sep 17 00:00:00 2001 From: Alexander Lichter Date: Wed, 17 Sep 2025 17:22:48 +0200 Subject: [PATCH 1/3] chore: improve oxlint example --- examples/with-oxlint/.oxlintrc.json | 3 ++- examples/with-oxlint/README.md | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/examples/with-oxlint/.oxlintrc.json b/examples/with-oxlint/.oxlintrc.json index e9ba0dc2a2baa..2a6999f4f42a4 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"] + "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..0cbd59707e2a9 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 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) From 7e59ac0d6896f83bbfd9fb77011e62731afa5790 Mon Sep 17 00:00:00 2001 From: Alexander Lichter Date: Wed, 17 Sep 2025 17:24:33 +0200 Subject: [PATCH 2/3] mention eslint core --- examples/with-oxlint/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/with-oxlint/README.md b/examples/with-oxlint/README.md index 0cbd59707e2a9..2179d9e76ae7a 100644 --- a/examples/with-oxlint/README.md +++ b/examples/with-oxlint/README.md @@ -6,7 +6,7 @@ Linting via Oxlint in this example includes type-aware linting through the `oxli In [`.oxlintrc.json`](./.oxlintrc.json), the plugins `eslint`, `react`, `unicorn`, `typescript`, `nextjs`, and `oxc` are enabled. -The first five 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. From 55f3b72e5f0613646f6096bc9a0169a0dd0536c6 Mon Sep 17 00:00:00 2001 From: Joseph Date: Thu, 18 Sep 2025 13:27:58 +0200 Subject: [PATCH 3/3] Point to remove $schema --- examples/with-oxlint/.oxlintrc.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/with-oxlint/.oxlintrc.json b/examples/with-oxlint/.oxlintrc.json index 2a6999f4f42a4..0f9b496bf810d 100644 --- a/examples/with-oxlint/.oxlintrc.json +++ b/examples/with-oxlint/.oxlintrc.json @@ -1,5 +1,5 @@ { - "$schema": "./node_modules/oxlint/configuration_schema.json", + "$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/**"] }