🌐
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
    
Published   Jan 27, 2026
Version   16.1.6
🌐
Next.js
nextjs.org › docs › app › api-reference › config › eslint
Configuration: ESLint | Next.js
2 weeks ago - It includes the @next/eslint-plugin-next plugin along with recommended rule-sets from eslint-plugin-react and eslint-plugin-react-hooks. ... eslint-config-next: Base configuration with Next.js, React, and React Hooks rules.
Discussions

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
🌐 github.com
1
November 9, 2025
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
🌐 github.com
9
25
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
🌐 r/reactjs
25
14
February 20, 2024
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
🌐 stackoverflow.com
🌐
Medium
medium.com › @wahvanessa22 › im-setting-up-eslint-for-my-next-js-a6f22ebf768b
I'm setting up ESLint for my Next.js + TypeScript project to keep my code clean, consistent, and bug-free. A step you should consider when writing like a pro! | by Wah Vanessa | Medium
May 13, 2025 - If you have ever used a configured linters file, and how it works, you will understand better will I mean by ESLint is an advanced linting configuration that helps you to write cleaner and clearer code.
🌐
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
🌐
DEV Community
dev.to › jordanahaines › just-use-this-nextjs-eslint-configuration-540
Just use this Next.js Eslint Configuration - DEV Community
January 12, 2025 - Because I couldn't easily extend this deprecated configuration, I (swore and then) scrapped it and initialized a new eslint config with npm init @eslint/config@latest. I then added the configuration for next wrapped with eslint's flat compat utility.
🌐
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)…
Find elsewhere
🌐
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.
🌐
ESLint
eslint.org › docs › latest › use › getting-started
Getting Started with ESLint
If you want to use a specific shareable config that is hosted on npm, you can use the --config option and specify the package name: ... # use `eslint-config-xo` shared config - npm 7+ npm init @eslint/config@latest -- --config eslint-config-xo
🌐
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
🌐
ESLint
eslint.org › docs › latest › use › configure › configuration-files
Configuration Files - ESLint - Pluggable JavaScript Linter
Selecting a version will take you to the chosen version of the ESLint docs. Version ... Results will be shown and updated as you type. ... This page explains how to use flat config files.
🌐
GeeksforGeeks
geeksforgeeks.org › next.js › next-js-eslint
Next.js ESLint - GeeksforGeeks
July 23, 2025 - Once we have our configuration file, we need to specify the ESLint configuration in our package.json file. We can do this by adding the following lines to our package.json: ... This tells ESLint to use the next configuration provided by eslint-config-next.
🌐
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
    
Published   Jan 27, 2026
Version   16.1.6
🌐
Danielfullstack
danielfullstack.com › article › how-to-configure-eslint-with-nextjs-in-3-minutes
How to Configure ESlint with Nextjs in 3 Minutes
Now lets create the configuration file. Create a file called .eslintrc.json in the root of your Nextjs project and copy the following settings.