1
0
mirror of https://github.com/thangisme/notes.git synced 2024-11-01 03:17:30 -04:00
notes/node_modules/stylelint/lib/rules/property-case
Patrick Marsceill b7b0d0d7bf
Initial commit
2017-03-09 13:16:08 -05:00
..
index.js Initial commit 2017-03-09 13:16:08 -05:00
README.md Initial commit 2017-03-09 13:16:08 -05:00

property-case

Specify lowercase or uppercase for properties.

    a { width: 1px; }
/**     ↑
 * These properties */

Options

string: "lower"|"upper"

"lower"

The following patterns are considered warnings:

a {
  Width: 1px
}
a {
  WIDTH: 1px
}
a {
  widtH: 1px
}
a {
  border-Radius: 5px;
}
a { 
  -WEBKIT-animation-duration: 3s; 
}
@media screen and (orientation: landscape) { 
  WiDtH: 500px; 
}

The following patterns are not considered warnings:

a {
  width: 1px
}
a {
  border-radius: 5px;
}
a { 
  -webkit-animation-duration: 3s; 
}
@media screen and (orientation: landscape) { 
  width: 500px; 
}

"upper"

The following patterns are considered warnings:

a {
  Width: 1px
}
a {
  width: 1px
}
a {
  widtH: 1px
}
a {
  border-Radius: 5px;
}
a { 
  -WEBKIT-animation-duration: 3s; 
}
@media screen and (orientation: landscape) { 
  WiDtH: 500px; 
}

The following patterns are not considered warnings:

a {
  WIDTH: 1px
}
a {
  BORDER-RADIUS: 5px;
}
a { 
  -WEBKIT-ANIMATION-DURATION: 3s; 
}
@media screen and (orientation: landscape) { 
  WIDTH: 500px; 
}