context.fix
within stylelint.createPlugin
? I don’t see an example, so I’m having trouble understanding https://stylelint.io/developer-guide/rules/#adding-autofixing
Hi please check the image and I want to keep the custom variables like that way, but itz show custom-property-empty-line-before error. Can you please set a rules. I don't need any empty line rule here.
"declaration-property-value-whitelist": {
"line-height": [
"/.*em$/"
]
},
I am using the above rule which shows error when I am not using rem or em for line-height. I removed the rule still same error for line-height : 1;
There should be no error for line-height : 1; without unit. there is no rule in our docs
--options
but I can't make it work
{
"*.{vue,css,scss,sass}": "cross-env-shell STYLELINT_DIFF_FORMATTER=json STYLELINT_DIFF=$(git diff --staged) stylelint --custom-formatter=node_modules/@primer/stylelint-diff-filter",
}