ben-eb / perfectionist

Beautify CSS files.
MIT License
229 stars 14 forks source link

Add an option to align vertically the braces #21

Open PhiLhoSoft opened 8 years ago

PhiLhoSoft commented 8 years ago

I wonder why it isn't there already... :smile:

h1 
{
    color: red;
}
ben-eb commented 8 years ago

Would accept a PR with this option.

ghost commented 7 years ago

You can just copy applyExpanded.js to some applyVerticalAlign.js, and replace in 101 row: rule.raws.between = ' '; => rule.raws.between = '\n';

ben-eb commented 7 years ago

Sure, this is on the easy end of the spectrum which is why I tagged it as help wanted. I can't do everything on this list.

ghost commented 7 years ago

Man, your job is awesome, without sarcasm. I created temp fork for use on my job, by this issue and https://github.com/ben-eb/perfectionist/issues/53 issues: https://github.com/dmitriy-lodyanov/perfectionist This commits probably help you. Or i can make pull request later, if you want.

ben-eb commented 7 years ago

@dmitriy-lodyanov A pull request would be great! 😄