by Vercel · eslint-config-next
The config create-next-app ships: Next.js rules plus React, React Hooks, import and accessibility basics.
pnpm add -D eslint eslint-config-next// eslint.config.js
import nextVitals from "eslint-config-next/core-web-vitals";
export default [
...nextVitals,
];| Rule | Severity | Linters | Reach | Trend |
|---|---|---|---|---|
| react-hooks/exhaustive-deps | warn | In ESLint, Oxlint, Biome | 199.8M | +35.4% |
| react-hooks/rules-of-hooks | error | In ESLint, Oxlint, Biome | 199.8M | +35.4% |
| react/jsx-no-comment-textnodes | error | In ESLint, Oxlint, Biome | 166.5M | +46.5% |
| react/jsx-no-duplicate-props | error | In ESLint, Oxlint, Biome | 166.5M | +46.5% |
| react/no-danger-with-children | error | In ESLint, Oxlint, Biome | 165.3M | +46.9% |
| react-hooks/error-boundaries | error | In ESLint, Oxlint | 164.5M | +28.3% |
| react-hooks/globals | error | In ESLint, Oxlint | 164.5M | +28.3% |
| react-hooks/immutability | error | In ESLint, Oxlint | 164.5M | +28.3% |
| react-hooks/incompatible-library | warn | In ESLint, Oxlint | 164.5M | +28.3% |
| react-hooks/preserve-manual-memoization | error | In ESLint, Oxlint | 164.5M | +28.3% |
| react-hooks/purity | error | In ESLint, Oxlint | 164.5M | +28.3% |
| react-hooks/refs | error | In ESLint, Oxlint | 164.5M | +28.3% |
| react-hooks/set-state-in-effect | error | In ESLint, Oxlint | 164.5M | +28.3% |
| react-hooks/set-state-in-render | error | In ESLint, Oxlint | 164.5M | +28.3% |
| react-hooks/static-components | error | In ESLint, Oxlint | 164.5M | +28.3% |
| react-hooks/unsupported-syntax | warn | In ESLint, Oxlint | 164.5M | +28.3% |
| react-hooks/use-memo | error | In ESLint, Oxlint | 164.5M | +28.3% |
| react-hooks/config | error | In ESLint | 164.5M | +28.3% |
| react-hooks/gating | error | In ESLint | 164.5M | +28.3% |
| react/no-string-refs | error | In ESLint, Oxlint, Biome | 162.5M | +48.0% |
| react/no-children-prop | error | In ESLint, Oxlint, Biome | 161.2M | +48.4% |
| react/no-render-return-value | error | In ESLint, Oxlint, Biome | 161.2M | +48.4% |
| react/jsx-key | error | In ESLint, Oxlint, Biome | 157.9M | +49.8% |
| jsx-a11y/alt-text | warn | In ESLint, Oxlint, Biome | 149.3M | +52.2% |
| jsx-a11y/aria-props | warn | In ESLint, Oxlint, Biome | 149.3M | +52.2% |
| jsx-a11y/aria-proptypes | warn | In ESLint, Oxlint, Biome | 149.3M | +52.2% |
| jsx-a11y/aria-unsupported-elements | warn | In ESLint, Oxlint, Biome | 149.3M | +52.2% |
| jsx-a11y/role-has-required-aria-props | warn | In ESLint, Oxlint, Biome | 149.3M | +52.2% |
| jsx-a11y/role-supports-aria-props | warn | In ESLint, Oxlint, Biome | 149.3M | +52.2% |
| react/jsx-no-undef | error | In ESLint, Oxlint | 136.5M | +37.4% |
| react/no-is-mounted | error | In ESLint, Oxlint | 135.3M | +37.7% |
| react/require-render-return | error | In ESLint, Oxlint | 135.3M | +37.7% |
| react/jsx-uses-react | error | In ESLint | 132.4M | +38.7% |
| react/jsx-uses-vars | error | In ESLint | 132.4M | +38.7% |
| react/no-direct-mutation-state | error | In ESLint, Oxlint, Biome | 131.9M | +39.0% |
| react/no-find-dom-node | error | In ESLint, Oxlint | 131.2M | +39.1% |
| react/no-unescaped-entities | error | In ESLint, Oxlint | 131.2M | +39.1% |
| react/no-deprecated | error | In ESLint | 131.2M | +39.1% |
| 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% |
| react/display-name | error | In ESLint, Oxlint | 127.8M | +40.4% |
| nextjs/no-sync-scripts | error | 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 | error | 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% |
| import/no-anonymous-default-export | warn | In ESLint, Oxlint | 51M | +45.5% |