tree: d6bb6958d92b5836c1f7c81417ab93135647b84a [path history] [tgz]
  1. index.js
  2. README.md
node_modules/stylelint/lib/rules/selector-pseudo-class-case/README.md

selector-pseudo-class-case

Specify lowercase or uppercase for pseudo-class selectors.

  a:hover {}
/** ↑
 * This pseudo-class selector */

The --fix option on the command line can automatically fix all of the problems reported by this rule.

Options

string: "lower"|"upper"

"lower"

The following patterns are considered violations:

a:Hover {}
a:hOvEr {}
a:HOVER {}
:ROOT {}
:-MS-INPUT-PLACEHOLDER {}

The following patterns are not considered violations:

a:hover {}
:root {}
:-ms-input-placeholder {}

"upper"

The following patterns are considered violations:

a:Hover {}
a:hOvEr {}
a:hover {}
:root {}
:-ms-input-placeholder {}

The following patterns are not considered violations:

a:HOVER {}
:ROOT {}
:-MS-INPUT-PLACEHOLDER {}