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

Feature/add colons preserve mode #82

Closed qnp closed 3 years ago

qnp commented 3 years ago

See issue #79 for context

ThisIsManta commented 3 years ago

Closed in favor of https://github.com/ThisIsManta/stylus-supremacy/commit/0734bec0c773b9dd663242edd32ab8b655274ad8, which is now available in v2.15.0. It detects the expression and keeps : regardless of insertColons option.

My philosophy is to make the formatter "just works" with minimum configurations. Adding preserve option would violate such philosophy.

qnp commented 3 years ago

Perfect, this is a way much clever solution.