@channel.io/stylelint-bezier
v0.2.8
Published
Stylelint configuration for Bezier design system.
Downloads
304
Readme
Stylelint Bezier
Stylelint configuration for Bezier design system.
Installation
npm
npm i -D @channel.io/stylelint-bezier
yarn
yarn add -D @channel.io/stylelint-bezier
Usage
Extend @channel.io/stylelint-bezier in your stylelint config.
{
"extends": ["@channel.io/stylelint-bezier"]
}
Rules
validate-token
Disallows use of tokens not in bezier-tokens. If you want to use css variable other than bezier design token, you can set a specific prefix and add it to ignorePrefix.
{
rule: {
'bezier/validate-token': [
true,
{
ignorePrefix: ['b-'],
severity: 'warning',
},
],
}
}
Version Matchups
| @channel.io/stylelint-bezier | @channel.io/bezier-react | | ---------------------------- | ------------------------ | | 0.1.0 | 2.2.4 | | 0.2.4 | 2.3.3 |