@kochurko/eslint-config

0.9.1 • Public • Published

@kochurko/eslint-config

npm npm

Description

ESLint config for my projects.

Installation

npm install --save-dev eslint @kochurko/eslint-config

Usage

Add the following to your .eslintrc.cjs:

module.exports = {
    extends: ["@kochurko/eslint-config"],
    root: true,
};

Client & Server

Add the following to your .eslintrc.cjs:

module.exports = {
    extends: ["@kochurko/eslint-config/client"],
};

or for server:

module.exports = {
    extends: ["@kochurko/eslint-config/server"],
};

Prettier

If you're utilizing Prettier, change the root configuration to extend the prettier preset.

module.exports = {
    extends: ["@kochurko/eslint-config", "@kochurko/eslint-config/prettier"],
    root: true,
};

Import order

If you want to enforce a convention in module import order, extend root config with the additional rules:

module.exports = {
    extends: ["@kochurko/eslint-config", "@kochurko/eslint-config/import"],
    root: true,
};

A11y

If you want to spot accessibility issues, extend root config with the additional rules:

module.exports = {
    extends: ["@kochurko/eslint-config", "@kochurko/eslint-config/a11y"],
    root: true,
};

Readme

Keywords

none

Package Sidebar

Install

npm i @kochurko/eslint-config

Weekly Downloads

6

Version

0.9.1

License

MIT

Unpacked Size

15.7 kB

Total Files

11

Last publish

Collaborators

  • vasiliy-kochurko