JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7312
  • Score
    100M100P100Q137587F
  • License MIT

stylelint plugin to disallow empty selectors

Package Exports

  • stylelint-selector-no-empty
  • stylelint-selector-no-empty/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (stylelint-selector-no-empty) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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