1.1.0 • Published 2 years ago

@yandex-cloud/eslint-config v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@yandex-cloud/eslint-config

Install

npm install --save-dev eslint @yandex-cloud/eslint-config

Usage

Add .eslintrc file in the project root with the following content:

{
    "extends": "@yandex-cloud/eslint-config",
    "root": true
}

Add client and server config files in corresponding directories:

{
    "extends": "@yandex-cloud/eslint-config/server"
}
{
    "extends": "@yandex-cloud/eslint-config/client"
}

Prettier

If you are using Prettier, extend root config with the additional rules:

{
    "extends": ["@yandex-cloud/eslint-config", "@yandex-cloud/eslint-config/prettier"],
    "root": true
}