1.0.9 • Published 2 years ago

stylelint-selector-no-empty v1.0.9

Weekly downloads
3,330
License
MIT
Repository
github
Last release
2 years ago

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