stylelint-selector-no-empty

stylelint plugin to disallow empty selectors

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
stylelint-selector-no-empty
1.0.9a year ago5 years agoMinified + gzip package size for stylelint-selector-no-empty in KB

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; }