ThisIsManta / stylus-supremacy

A Node.js script that helps formatting Stylus files.
https://thisismanta.github.io/stylus-supremacy
MIT License
88 stars 9 forks source link

`alwaysUseZeroWithoutUnit: true` not safe for transitions 0s and 0ms #28

Closed zoxon closed 6 years ago

zoxon commented 6 years ago

Config:

{
  "alwaysUseZeroWithoutUnit": true
}

Test file:

.test-class
  transition all 125ms ease-in-out 0s
  transition all 125ms ease-in-out 0ms

Formatted:

.test-class {
        transition: all 125ms ease-in-out 0; // error invalid property value
        transition: all 125ms ease-in-out 0; // not valid code
}
ThisIsManta commented 6 years ago

This issue has been fixed at version 2.10.0

Cheers!