Monorepository with all necessary ESLint configurations.
Important
Only ESM and ESLint FlatConfig
Includes the following sub-packages:
-
@pilaton/eslint-config-base
The configuration includes basic JS and TS code checks. -
@pilaton/eslint-config-react
Additional config on top of the base config if you use React in your project. -
@pilaton/eslint-config-next
Additional config on top of react config if you use Next.js in your project. -
@pilaton/eslint-config-markdown
Config for linting .md and .mdx files.
npm i @pilaton/eslint-config-[NAME] --save-dev
[NAME]: base, react, next or markdown
eslint.config.js
(eslint>=v8.23.1)
import base from '@pilaton/eslint-config-base';
import markdown from '@pilaton/eslint-config-markdown';
import next from '@pilaton/eslint-config-next';
import react from '@pilaton/eslint-config-react';
export default [
...base,
...react,
...next,
...markdown,
{
// Your config
},
];