Next.js
Use Next.js support from the lean v3 composer. Install the @santi020k/eslint-config-next package.
Install
Section titled “Install”pnpm add -D @santi020k/eslint-config-basic @santi020k/eslint-config-next @santi020k/eslint-config-react eslintnpm install -D @santi020k/eslint-config-basic @santi020k/eslint-config-next @santi020k/eslint-config-react eslintyarn add -D @santi020k/eslint-config-basic @santi020k/eslint-config-next @santi020k/eslint-config-react eslintbun add -d @santi020k/eslint-config-basic @santi020k/eslint-config-next @santi020k/eslint-config-react eslintConfigure
Section titled “Configure”import { defineConfig } from '@santi020k/eslint-config-basic'
export default await defineConfig({ frameworks: { next: true }, typescript: true})With the required config packages installed, the one-line recommended entry auto-detects the framework; custom configs can use defineConfig() without a frameworks object.
What It Adds
Section titled “What It Adds”- Next.js and React rules. React is included automatically.
- Composition through the same
@santi020k/eslint-config-basicentry point as every other framework. - Compatibility with advanced overrides if you pass a custom config array or factory instead of
true.
- This framework package is a public, optional dependency in v3; the basic composer loads it only when enabled.
- For the archived v1 setup, see the v1 Next.js guide.
Related Pages
Section titled “Related Pages”Did this page help?
Your answer stays in this browser. Share details on GitHub to help improve the docs.