matype / stylefmt

stylefmt is a tool that automatically formats stylesheets.
Other
2.1k stars 89 forks source link

formatting is not happening correctly in some case #323

Open sourav-kumar opened 6 years ago

sourav-kumar commented 6 years ago

There are two cases where I found formatting not happening correctly,

1) actual:

.class-name {  padding: 0;  }

after formatting:

.class-name {  padding: 0;
}

There should not be any change as per rule written in styleling-config-standard. Means closing brace should not be on new line.

2) actual

$variableName: #fff !default;

After formatting

$variableName: #fff!default;

space is getting removed after stylefmt formatting which is wrong.