@pilaton/eslint-config-next
v1.4.0
Published
ESLint configuration for Next.js projects
Downloads
84
Maintainers
Readme
@pilaton/eslint-config-next
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.
Included in the package
Install
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
Usage
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
},
];