1.2.0 • Published 2 years ago

@yandex-cloud/stylelint-config v1.2.0

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

@yandex-cloud/stylelint-config

Install

$ npm install --save-dev stylelint postcss @yandex-cloud/stylelint-config

Usage

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

{
    "extends": "@yandex-cloud/stylelint-config"
}

Prettier

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

{
    "extends": ["@yandex-cloud/stylelint-config", "@yandex-cloud/stylelint-config/prettier"]
}

Order

If you want to order properties in your css files, extend root config with the additional rules:

{
    "extends": ["@yandex-cloud/stylelint-config", "@yandex-cloud/stylelint-config/order"]
}