by Vercel · @next/eslint-plugin-next
Only the Next.js plugin's own rules, without the React and accessibility rules that eslint-config-next adds.
pnpm add -D eslint @next/eslint-plugin-next// eslint.config.js
import next from "@next/eslint-plugin-next";
export default [
next.configs.recommended,
];| Rule | Severity | Linters | Reach | Trend |
|---|---|---|---|---|
| nextjs/google-font-display | warn | In ESLint, Oxlint, Biome | 129.8M | +61.8% |
| nextjs/google-font-preconnect | warn | In ESLint, Oxlint, Biome | 129.8M | +61.8% |
| nextjs/inline-script-id | error | In ESLint, Oxlint, Biome | 129.8M | +61.8% |
| nextjs/no-document-import-in-page | error | In ESLint, Oxlint, Biome | 129.8M | +61.8% |
| nextjs/no-head-element | warn | In ESLint, Oxlint, Biome | 129.8M | +61.8% |
| nextjs/no-head-import-in-document | error | In ESLint, Oxlint, Biome | 129.8M | +61.8% |
| nextjs/no-img-element | warn | In ESLint, Oxlint, Biome | 129.8M | +61.8% |
| nextjs/no-unwanted-polyfillio | warn | In ESLint, Oxlint, Biome | 129.8M | +61.8% |
| nextjs/no-sync-scripts | warn | In ESLint, Oxlint, Biome | 101.8M | +52.7% |
| nextjs/next-script-for-ga | warn | In ESLint, Oxlint, Biome | 99.7M | +51.4% |
| nextjs/no-async-client-component | warn | In ESLint, Oxlint, Biome | 99.7M | +51.4% |
| nextjs/no-before-interactive-script-outside-document | warn | In ESLint, Oxlint, Biome | 99.7M | +51.4% |
| nextjs/no-assign-module-variable | error | In ESLint, Oxlint | 99.7M | +51.4% |
| nextjs/no-css-tags | warn | In ESLint, Oxlint | 99.7M | +51.4% |
| nextjs/no-duplicate-head | error | In ESLint, Oxlint | 99.7M | +51.4% |
| nextjs/no-html-link-for-pages | warn | In ESLint, Oxlint | 99.7M | +51.4% |
| nextjs/no-page-custom-font | warn | In ESLint, Oxlint | 99.7M | +51.4% |
| nextjs/no-script-component-in-head | error | In ESLint, Oxlint | 99.7M | +51.4% |
| nextjs/no-styled-jsx-in-document | warn | In ESLint, Oxlint | 99.7M | +51.4% |
| nextjs/no-title-in-document-head | warn | In ESLint, Oxlint | 99.7M | +51.4% |
| nextjs/no-typos | warn | In ESLint, Oxlint | 99.7M | +51.4% |
| nextjs/no-location-assign-relative-destination | warn | In ESLint | 99.7M | +51.4% |