My current stylelint config enables plugin/no-unsupported-browser-features
, which is quite helpful.
It does generate hundreds of
Unexpected browser feature "<some feature>" is only partially supported by IE 10,11, Edge 15
warnings.
Those browsers ARE included in my .browserslist
. For this plugin, however, I don't care.
Is it possible to exclude checks for individual rules, for specific browsers?
I.e., I just want to turn off these warnings for IE 10,11, & Edge 15
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",
}