Common Stylelint configuration
- Install from npm
npm i --save-dev @tinkoff/stylelint-config
- Create
stylelint.config.js
at project root
{
"extends": ["@tinkoff/stylelint-config"]
}
More information about available at stylelint documentation
- prettier
{
"extends": ["@tinkoff/stylelint-config/prettier"]
}
- less - includes prettier config
{
"extends": ["@tinkoff/stylelint-config/less"]
}
- angular - includes prettier config
{
"extends": ["@tinkoff/stylelint-config/angular"]
}
- angular-less - combine angular and less configs
{
"extends": ["@tinkoff/stylelint-config/angular-less"]
}