gucong3000 / postcss-jsx

PostCSS syntax for parsing CSS in JS literals
MIT License
76 stars 28 forks source link

`zIndex` property is converted to `-z-index` #32

Closed jeddy3 closed 6 years ago

jeddy3 commented 6 years ago

JS:

<div
  style={{
    zIndex: "1"
  }}
>

stylelint config:

{
  "rules": {
    "property-whitelist": ["z-index"]
  }
}

stylelint warning (note the extra leading hyphen in the property name):

Unexpected property "-z-index" (property-whitelist)"

Expected no violation.