npm
npmjs.com › package › eslint-config-next
eslint-config-next - npm
January 27, 2026 - ESLint configuration used by Next.js.. Latest version: 16.1.6, last published: a month ago. Start using eslint-config-next in your project by running `npm i eslint-config-next`. There are 1677 other projects in the npm registry using eslint-config-next.
» npm install eslint-config-next
Docs: ESLint config ambiguities
What is the documentation issue? https://nextjs.org/docs/app/api-reference/config/eslint could use somewhat of a re-write, as there are multiple ambiguities on the page and has some outdated inform... More on github.com
How to use new "flat config" approach in Eslint?
Summary I have Eslint working in a TypeScript Next.js project, but I want to switch to the new "flat config" approach that Eslint offers. (Why is that not Next.js's default?) I create... More on github.com
What ESLint Plugins Do You Recommend When Using NextJs?
Here is my ESLint plugins I use for all my NextJS projects: https://github.com/ixartz/Next-js-Boilerplate/blob/main/package.json#L85-L102 There are 18 plugins. I also use ESLint plugins for testing part: Jest, Playwright, Storybook, etc. And here you can find how I configure everything: https://github.com/ixartz/Next-js-Boilerplate/blob/main/.eslintrc More on reddit.com
next.js - Proper eslint configuration under NextJS 15 - Stack Overflow
The Next.js plugin was not detected in your ESLint configuration. More on stackoverflow.com
Videos
08:29
How to setup ESLint and Prettier in Next.js Projects - YouTube
07:17
10. Configuring And Setting Up ESlint - YouTube
16:26
Configuring ESLint to Minimize Bugs & Promote Type-Safety incl. ...
05:11
#33 Setting up ESLint for NextJs | React & Next.js - ESLint Setup ...
05:51
🚀 Setup Eslint with Nextjs 13 Like a Pro! | Eslint Next.js 13 ...
05:40
#2 - Improving DX w/ Prettier & ESLint | Next.JS 14 Series - YouTube
GitHub
github.com › vercel › next.js › issues › 85947
Docs: ESLint config ambiguities · Issue #85947 · vercel/next.js
November 9, 2025 - Also changing "this plugin" to "@next/eslint-plugin-next" would help readers. https://nextjs.org/docs/app/api-reference/config/eslint#migrating-existing-config also shows the non-flat config way to configure in the module.exports example and should be updated.
Published Nov 09, 2025
GitHub
github.com › vercel › next.js › blob › canary › packages › eslint-config-next › package.json
next.js/packages/eslint-config-next/package.json at canary · vercel/next.js
"name": "eslint-config-next", "version": "16.2.0-canary.60", "description": "ESLint configuration used by Next.js.", "license": "MIT", "repository": { "url": "vercel/next.js", "directory": "packages/eslint-config-next" }, "homepage": "https://nextjs.org/docs/app/api-reference/config/eslint", "files": [ "dist" ], "dependencies": { "@next/eslint-plugin-next": "16.2.0-canary.60", "eslint-import-resolver-node": "^0.3.6", "eslint-import-resolver-typescript": "^3.5.2", "eslint-plugin-import": "^2.32.0", "eslint-plugin-jsx-a11y": "^6.10.0", "eslint-plugin-react": "^7.37.0", "eslint-plugin-react-hooks": "^7.0.0", "globals": "16.4.0", "typescript-eslint": "^8.46.0" }, "peerDependencies": { "eslint": ">=9.0.0", "typescript": ">=3.3.1" }, "peerDependenciesMeta": { "typescript": { "optional": true ·
Author vercel
Reddit
reddit.com › r/nextjs › eslint-config-next v1.7
r/nextjs on Reddit: eslint-config-next V1.7
March 12, 2025 - Hi all, I want to draw your attention to my package: https://github.com/Goldziher/eslint-config-next This is a comprehensive EsLint 9 (flat config)…
GitHub
github.com › vercel › next.js › discussions › 49337
How to use new "flat config" approach in Eslint? · vercel/next.js · Discussion #49337
I have created a package eslint-config-next-flat (Source code) that is (roughly) a port of the eslint-config-next for FlatConfig.
Author vercel
Medium
blog.linotte.dev › eslint-9-next-js-935c2b6d0371
Next.js & ESLint 9 Setup Guide | Linotte Blog
October 14, 2024 - $ npx create-next-app@14 Success! Created my-app at ./my-app · $ cd my-app && npm outdated Package Current Wanted Latest Location Depended by @types/node 20.14.14 20.14.14 22.0.3 node_modules/@types/node my-app eslint 8.57.0 8.57.0 9.9.0 node_modules/eslint my-app · In April of 2024, ESLint released v9.0.0, a new major version. Flat config is now the default configuration, which is a big structural change for ESLint users, plugin developers, and integrators.
Reddit
reddit.com › r/reactjs › what eslint plugins do you recommend when using nextjs?
r/reactjs on Reddit: What ESLint Plugins Do You Recommend When Using NextJs?
February 20, 2024 -
I've recently been looking at the Bullet Proof React repository and noticed that they use a few ESLint plugins. I've only ever used what comes with Next. What plugins do you use and recommend?
Top answer 1 of 6
15
eslint-plugin-react eslint-plugin-react-hooks eslint-config-next typescript-eslint/eslint-plugin eslint-plugin-prettier sort-imports or eslint-plugin-simple-import-sort eslint-plugin-boundaries And plugins for tests (RTL, Cypress etc.) if you want to enforce lint on your tests and you're using these libs.
2 of 6
9
Here is my ESLint plugins I use for all my NextJS projects: https://github.com/ixartz/Next-js-Boilerplate/blob/main/package.json#L85-L102 There are 18 plugins. I also use ESLint plugins for testing part: Jest, Playwright, Storybook, etc. And here you can find how I configure everything: https://github.com/ixartz/Next-js-Boilerplate/blob/main/.eslintrc
Chris
chris.lu › web_development › tutorials › next-js-static-first-mdx-starterkit › linting-setup-using-eslint
Linting setup using ESLint 9 flat config - Next.js 15 Tutorial
In ESLint v9 the eslintrc files are deprecated, support for eslintrc (classic) configuration files will be removed in ESLint version 10.0.0 ... if Next.js detects that you are still using ESLint v8 they automatically set the ESLINT_USE_FLAT_CONFIG=false flag, which enables support for flat config files in ESLint v8
Top answer 1 of 4
7
Try this
import pluginNext from '@next/eslint-plugin-next'
export default defineConfig([
{
plugins: {
'@next/next': pluginNext
},
},
{
files: ['**/*.ts', '**/*.tsx'],
rules: {
...pluginNext.configs.recommended.rules
}
}
])
2 of 4
5
This works for me (I tested with next 15.0.3 / eslint 9.14 / eslint-config-next 15.0.3)
eslint.config.mjs
import pluginNext from '@next/eslint-plugin-next';
import parser from '@typescript-eslint/parser'; // optional
export default [
{
name: 'ESLint Config - nextjs',
languageOptions: {
parser, // optional
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
},
plugins: {
'@next/next': pluginNext,
},
files: ['**/*.{js,mjs,cjs,ts,jsx,tsx}'],
rules: {
...pluginNext.configs.recommended.rules,
...pluginNext.configs['core-web-vitals'].rules,
},
},
];
Reddit
reddit.com › r/nextjs › solid eslint config for next 15.5?
r/nextjs on Reddit: Solid ESLint config for Next 15.5?
September 2, 2025 -
I'm wondering if anyone is willing to share their eslint.config.mjs file, for the latest Next 15.5? There's so many options and I wonder if there's some industry standards that are good to go for most projects
This is the one I'm using right now (with GPT's help)
// eslint.config.mjs
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";
import unusedImports from "eslint-plugin-unused-imports";
const compat = new FlatCompat({
baseDirectory: import.meta.dirname,
recommendedConfig: js.configs.recommended,
});
export default [
{
ignores: ["**/node_modules/**", ".next/**", "dist/**", "coverage/**", "**/*.min.js"],
},
...compat.config({
extends: ["next/core-web-vitals", "next/typescript", "prettier"],
}),
{
files: ["**/*.{js,jsx,ts,tsx}"],
plugins: {
"unused-imports": unusedImports,
},
rules: {
"import/order": [
"error",
{
groups: [
"builtin",
"external",
"internal",
"parent",
"sibling",
"index",
"object",
"type",
],
alphabetize: { order: "asc", caseInsensitive: true },
},
],
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"warn",
{ varsIgnorePattern: "^_", argsIgnorePattern: "^_" },
],
"react-hooks/exhaustive-deps": "off",
"@typescript-eslint/no-explicit-any": "off",
},
},
];npm
npmjs.com › package › @next › eslint-plugin-next
@next/eslint-plugin-next - npm
January 27, 2026 - ESLint plugin for Next.js.. Latest version: 16.1.6, last published: a month ago. Start using @next/eslint-plugin-next in your project by running `npm i @next/eslint-plugin-next`. There are 650 other projects in the npm registry using @next/eslint-plugin-next.
» npm install @next/eslint-plugin-next