Stylelint configuration for Bezier design system.
npm i -D @channel.io/stylelint-bezier
yarn add -D @channel.io/stylelint-bezier
Extend @channel.io/stylelint-bezier in your stylelint config.
{
"extends": ["@channel.io/stylelint-bezier"]
}
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',
},
],
}
}
@channel.io/stylelint-bezier | @channel.io/bezier-react |
---|---|
0.1.0 | 2.2.4 |
0.2.4 | 2.3.3 |