🌐
Next.js
nextjs.org › docs › app › api-reference › config › eslint
Configuration: ESLint | Next.js
2 weeks ago - eslint-config-next/typescript: Adds TypeScript-specific linting rules from typescript-eslint.
🌐
DEV Community
dev.to › jordanahaines › just-use-this-nextjs-eslint-configuration-540
Just use this Next.js Eslint Configuration - DEV Community
January 12, 2025 - If you're just here to find a good, working ESLint configuration for a NextJS project, then look no further. Copy what's below. Although, it's probably out of date, so you can find a version that's been updated since I published this post in my open source project Historio ➡️ in Github here ⬅️. ... npm i --save eslint typescript-eslint eslint-config-next eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-tailwindcss eslint-plugin-unicorn
🌐
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 - I decided to document my findings because of how hard it was, but it was fun to set up ESLint for my next project through its documentation and understanding what is going on, especially with the new changes. For those who do not know what ESLint is, I've got you. 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.
🌐
npm
npmjs.com › package › eslint-config-next
eslint-config-next - npm
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
🌐
Stack Overflow
stackoverflow.com › questions › 76949413 › configuration-typescript-eslint-in-next-js-13
Configuration typescript-eslint in Next.js 13 - Stack Overflow
Is this the right configuration? ... In '@typescript-eslint', getter functions must always return valid values. /** 1. error: no return */ const p = { get name() { // no returns. }, }; /** 2. warn: return undefined */ const p = { get name() { return }, }; /** 3. success */ const p = { get name() { return 'something' }, }; If there is no return, modify the eslint:recommended rule. Rules Page · { "extends": [ "next/core-web-vitals", "eslint:recommended", "plugin:@typescript-eslint/recommended" ], "parser": "@typescript-eslint/parser", "plugins": ["@typescript-eslint"], "root": true, **"rules": { "getter-return": ["error", { "allowImplicit": true }] }** }
🌐
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. It seems to work perfect for TypeScript projects (not sure about native JavaScript since it requires Babel parser and I don't have a complicated vanilla JS Next.js project to try it out with).
Author   vercel
🌐
Paulintrognon
paulintrognon.fr › blog › typescript-prettier-eslint-next-js
Start a clean Next.js project with TypeScript, ESLint and Prettier
The package eslint-config-prettier that we use here is only to prevent conflicts between prettier and eslint. I strongly recommend you don't only rely on "format on save" VSCode features, but you also add another layer of safety by running eslint and prettier on each commit. That will make sure that every file you commit has no ESLint error and are correctly formatted. Also, you can run additional checks on commit, like TypeScript type-checking.
🌐
GitHub
github.com › Goldziher › eslint-config-next
GitHub - Goldziher/eslint-config-next: This is a strict NextJS/Typescript eslint configuration
This is an extensive ESLint configurations for NextJS based projects. Its compatible with ESLint >=9. npm install --save-dev eslint typescript-eslint @trumpet/eslint-config-next
Author   Goldziher
🌐
Medium
medium.com › @ray.an › extend-nextjs-eslint-with-typescript-and-prettier-support-24ef03a29315
Setup Nextjs Eslint with Typescript and Prettier | by Ray A | Medium
April 29, 2024 - @typescript-eslint/eslint-plugin provides Eslint rules and default configurations specifically for Typescript. @typescript-eslint/parser parses Typescript to Javascript format that Eslint can work on.
Find elsewhere
🌐
ESLint
eslint.org › docs › latest › use › configure › configuration-files
Configuration Files - ESLint - Pluggable JavaScript Linter
In this case, ESLint does not search for configuration files and instead uses some-other-file.js. For Deno and Bun, TypeScript configuration files are natively supported; for Node.js, you must install the optional dev dependency jiti in version 2.2.0 or later in your project (this dependency is not automatically installed by ESLint):
🌐
TypeScript ESlint
typescript-eslint.io › getting-started
Getting Started | typescript-eslint
This page is a quick-start for ESLint's new "flat" config format to go from zero to linting with our recommended rules on your TypeScript code as quickly as possible. ... For the same guide but for ESLint's legacy format — see Legacy ESLint Setup. For quickstart information on linting with type information — see Typed Linting. First, install the required packages for ESLint, TypeScript, and our tooling: ... Next...
🌐
freeCodeCamp
freecodecamp.org › news › how-to-set-up-eslint-prettier-stylelint-and-lint-staged-in-nextjs
How to Set Up ESLint, Prettier, StyleLint, and lint-staged in Next.js
May 30, 2025 - This re-exports configs recommended and core-web-vitals from the plugin. It also re-exports (in v15 and above of the package) a config of TypeScript linting rules from plugin typescript-eslint/eslint-plugin.
🌐
Gitlab
soykje.gitlab.io › en › blog › nextjs-typescript-eslint
Next.js & Typescript + ESLint
When you visit any website, it may store or retrieve information on your browser, mostly in the form of cookies. This information might be about you, your preferences or your device and is mostly used to make the site work as you expect it to. The information does not usually directly identify ...
🌐
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.
🌐
Chris
chris.lu › web_development › tutorials › next-js-static-first-mdx-starterkit › typescript-eslint-flat-config
Typescript Linting and custom flat config - Next.js 15 Tutorial
There is one major difference between classic configs and flat config setups for typescript-eslint, for an ESLint v8 setup you would usually install two packages, @typescript-eslint/eslint-plugin the package to the tseslint plugin and also the @typescript-eslint/parser parser package, but since ESLint 9 most tutorials (that I saw) had switched to using a single typescript-eslint package that contains the plugin, the parser as well as configurations · We start by installing typescript-eslint package using the following command: npm i typescript-eslint@latest --save-dev --save-exact · Next we will fine tune our typescript linting by adding a custom/typescript-eslint/recommended config: