hey folks, question: i am looking for something that enforces css selector namespacing/prefixing
is there a stylelint plugin provides this?
example: (ns-
is the required namespace/prefix)
/* bad */
.some-selector { ... }
.ns-some-selector some-other-selector { ... }
/* good */
.ns-some-selector { ... }
.ns-some-selector ns-some-other-selector { ... }
cheers!
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