Skip to content

Monorepository with all necessary ESLint configurations

License

Notifications You must be signed in to change notification settings

Pilaton/eslint-eco

Repository files navigation

eslint-eco

Monorepository with all necessary ESLint configurations.


Important

Only ESM and ESLint FlatConfig


Includes the following sub-packages:

  1. @pilaton/eslint-config-base
    The configuration includes basic JS and TS code checks.

    npm

  2. @pilaton/eslint-config-react
    Additional config on top of the base config if you use React in your project.

    npm

  3. @pilaton/eslint-config-next
    Additional config on top of react config if you use Next.js in your project.

    npm

  4. @pilaton/eslint-config-markdown
    Config for linting .md and .mdx files.

    npm

Install

npm i @pilaton/eslint-config-[NAME] --save-dev

[NAME]: base, react, next or markdown

Usage

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