Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.47 KB

README.md

File metadata and controls

47 lines (32 loc) · 1.47 KB

@pilaton/eslint-config-next

npm

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

@next/eslint-plugin-next

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
  },
];