ESLint configuration for code inspection of Next.js projects.
Note
Package from the eslint-eco
monorepository.
I recommend reading the documentation to understand the whole picture.
npm i @pilaton/eslint-config-next --save-dev
I recommend using this config over @pilaton/eslint-config-base
and @pilaton/eslint-config-react
:
npm i @pilaton/eslint-config-base @pilaton/eslint-config-react @pilaton/eslint-config-next --save-dev
This configuration is created for the new ESLint Flat Config, and only supports ESM!
eslint.config.js
(eslint>=v8.23.1)
import base from '@pilaton/eslint-config-base';
import react from '@pilaton/eslint-config-react';
import next from '@pilaton/eslint-config-next';
export default [
...base,
...react,
...next
{
// Your config
},
];