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

Infinitely adds parentheses on format #30

Closed animify closed 6 years ago

animify commented 6 years ago

Can't find any setting that affects this, so here it is. On format, parentheses are infinitely appended to the value of an object (only if it is a variable), as below:

On first format:

$color = {
    white: #ffffff
};
$textColor = {
    heading: ($color.white)
};

On second format:

$color = {
    white: #ffffff
};
$textColor = {
    heading: (($color.white))
};

etc.

ThisIsManta commented 6 years ago

Thank you for reporting the issue. This has been fixed at version 2.10.1. Please upgrade accordingly. Cheers!