stylelint-selector-no-empty
v1.0.9
Published
stylelint plugin to disallow empty selectors
Downloads
37,633
Maintainers
Readme
stylelint-selector-no-empty
Disallow empty selector in a css rule
a, ,.b { display: inline; width: 100px; }
/** ↑
* This empty selector */
Installation
npm install stylelint-selector-no-empty --save-dev
Usage
// .stylelintrc
{
"plugins": [
"stylelint-selector-no-empty"
],
"rules": {
"plugin/stylelint-selector-no-empty": true,
}
}
Options
true
The following patterns are considered violations:
a,,span { display: inline; width: 100px; }
a,span, { display: inline; width: 100px; }