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

Object variable properties wrap (ever-deepening) parenthesis on format #44

Closed maranomynet closed 4 years ago

maranomynet commented 5 years ago
for $i in $bar.baz {
  something: $i;
}

becomes:

for $i in ($bar.baz) {
  something: $i;
}

becomes:

for $i in (($bar.baz)) {
  something: $i;
}

becomes:

for $i in ((($bar.baz))) {
  something: $i;
}

becomes:

for $i in (((($bar.baz)))) {
  something: $i;
}

ad nauseum...

NOTE: There should be no wrapping to begin with.

ThisIsManta commented 4 years ago

This will be fixed in v2.14.2 or newer.