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.
npm install -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 In ESLint, Oxlint, Biome130.3M reach · +60.5% | warn | In ESLint, Oxlint, Biome | 130.3M | +60.5% |
| nextjs/google-font-preconnect In ESLint, Oxlint, Biome130.3M reach · +60.5% | warn | In ESLint, Oxlint, Biome | 130.3M | +60.5% |
| nextjs/inline-script-id In ESLint, Oxlint, Biome130.3M reach · +60.5% | error | In ESLint, Oxlint, Biome | 130.3M | +60.5% |
| nextjs/no-document-import-in-page In ESLint, Oxlint, Biome130.3M reach · +60.5% | error | In ESLint, Oxlint, Biome | 130.3M | +60.5% |
| nextjs/no-head-element In ESLint, Oxlint, Biome130.3M reach · +60.5% | warn | In ESLint, Oxlint, Biome | 130.3M | +60.5% |
| nextjs/no-head-import-in-document In ESLint, Oxlint, Biome130.3M reach · +60.5% | error | In ESLint, Oxlint, Biome | 130.3M | +60.5% |
| nextjs/no-img-element In ESLint, Oxlint, Biome130.3M reach · +60.5% | warn | In ESLint, Oxlint, Biome | 130.3M | +60.5% |
| nextjs/no-unwanted-polyfillio In ESLint, Oxlint, Biome130.3M reach · +60.5% | warn | In ESLint, Oxlint, Biome | 130.3M | +60.5% |
| nextjs/no-sync-scripts In ESLint, Oxlint, Biome101.8M reach · +51.0% | warn | In ESLint, Oxlint, Biome | 101.8M | +51.0% |
| nextjs/next-script-for-ga In ESLint, Oxlint, Biome99.7M reach · +49.8% | warn | In ESLint, Oxlint, Biome | 99.7M | +49.8% |
| nextjs/no-async-client-component In ESLint, Oxlint, Biome99.7M reach · +49.8% | warn | In ESLint, Oxlint, Biome | 99.7M | +49.8% |
| nextjs/no-before-interactive-script-outside-document In ESLint, Oxlint, Biome99.7M reach · +49.8% | warn | In ESLint, Oxlint, Biome | 99.7M | +49.8% |
| nextjs/no-assign-module-variable In ESLint, Oxlint99.7M reach · +49.8% | error | In ESLint, Oxlint | 99.7M | +49.8% |
| nextjs/no-css-tags In ESLint, Oxlint99.7M reach · +49.8% | warn | In ESLint, Oxlint | 99.7M | +49.8% |
| nextjs/no-duplicate-head In ESLint, Oxlint99.7M reach · +49.8% | error | In ESLint, Oxlint | 99.7M | +49.8% |
| nextjs/no-html-link-for-pages In ESLint, Oxlint99.7M reach · +49.8% | warn | In ESLint, Oxlint | 99.7M | +49.8% |
| nextjs/no-page-custom-font In ESLint, Oxlint99.7M reach · +49.8% | warn | In ESLint, Oxlint | 99.7M | +49.8% |
| nextjs/no-script-component-in-head In ESLint, Oxlint99.7M reach · +49.8% | error | In ESLint, Oxlint | 99.7M | +49.8% |
| nextjs/no-styled-jsx-in-document In ESLint, Oxlint99.7M reach · +49.8% | warn | In ESLint, Oxlint | 99.7M | +49.8% |
| nextjs/no-title-in-document-head In ESLint, Oxlint99.7M reach · +49.8% | warn | In ESLint, Oxlint | 99.7M | +49.8% |
| nextjs/no-typos In ESLint, Oxlint99.7M reach · +49.8% | warn | In ESLint, Oxlint | 99.7M | +49.8% |
| nextjs/no-location-assign-relative-destination In ESLint99.7M reach · +49.8% | warn | In ESLint | 99.7M | +49.8% |