@productboard/stylelint-pb
v1.1.0
Published
[![All Contributors](https://img.shields.io/badge/all_contributors-5-orange.svg?style=flat-square)](#contributors) [![codecov](https://codecov.io/gh/productboardlabs/stylelint-pb/branch/master/graph/badge.svg)](https://codecov.io/gh/productboardlabs/style
Downloads
3
Keywords
Readme
Stylelint-PB
Set (TODO) of our custom made rules for Stylelint. 🚀
Story
...🍻
Install
yarn add @productboard/stylelint-pb
Rules
smart-color-replacement
It's smart! Configuration needs to be provided in format like bellow. 👇
{
"@snowWhite": "#f4f5e2"
}
Example configuration. 👇
{
rules: {
"@productboard/smart-color-replacement": [
{
"@snowWhite": "#f4f5e2"
}
]
}
}
You can also run this rule in strict mode which means that there is no other color than variable allowed!
{
"rules": {
"@productboard/smart-color-replacement": [
{
"@white": "#ffffff"
},
{
"strictMode": true
}
]
}
}
Contributors
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!