matype / stylefmt

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

Stylefmt breaks multiline formatting #226

Closed in-in closed 7 years ago

in-in commented 7 years ago
/* before */
a {
  box-shadow:
    0 0 1px 1px skyblue, 
    0 0 2px 2px hotpink;
}
/* after */
a {
  box-shadow: 0 0 1px 1px skyblue, 0 0 2px 2px hotpink;
}

My .stylelintrc

{
  "rules": {
    "color-hex-case": "lower",
    "color-hex-length": "short"
  }
}

I use gulp-stylefmt@1.0.0

matype commented 7 years ago

@in-in stylefmt formats a declaration to one line by default.

in-in commented 7 years ago

According to the issue #216 you want to fix it in the next version?