Next.js
Package: @santi020k/eslint-config-next
Use the Next.js package for applications that need Next-specific linting while keeping React explicit in the final config.
Install
Section titled “Install”pnpm add -D @santi020k/eslint-config-next @santi020k/eslint-config-reactnpm install -D @santi020k/eslint-config-next @santi020k/eslint-config-reactyarn add -D @santi020k/eslint-config-next @santi020k/eslint-config-reactbun add -d @santi020k/eslint-config-next @santi020k/eslint-config-reactNext.js is explicit and requires the React package too.
Configure
Section titled “Configure”import { eslintConfig, NextMode } from '@santi020k/eslint-config-basic'import next from '@santi020k/eslint-config-next'import react from '@santi020k/eslint-config-react'
export default eslintConfig({ frameworks: { next, react }, nextMode: NextMode.AppRouter, typescript: true})What It Adds
Section titled “What It Adds”- Next.js-specific rules as a dedicated framework package.
- An explicit React dependency for clearer composition and safer contracts.
NextMode.AppRoutersupport for App Router projects. This is auto-detected if anapp/orsrc/app/directory is present.
- Use
NextMode.AppRouterwhen the app is built around the App Router and you want the corresponding override for@next/next/no-html-link-for-pages. - The CLI will include both React and Next imports when it detects a Next.js project.
Repository Links
Section titled “Repository Links”- Source Package: packages/next
- Playground: packages/playground/next
Related Pages
Section titled “Related Pages”Did this page help?
One click helps us spot documentation that needs another pass. No personal data is sent.