Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@yandex-cloud/eslint-config

yandex-cloud33MITdeprecated1.1.0

Package is moved to the @gravity-ui scope

Yandex.Cloud ESLint config, following our styleguide

eslint, config

readme

@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
}