matype / stylefmt

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

block-opening-brace-space-before with custom at-rule fails #177

Closed saiichihashimoto closed 1 year ago

saiichihashimoto commented 8 years ago

I'm using a custom at-rule with postcss, stylefmt, stylelint, and stylelint-config-standard. No matter what I do, stylefmt keeps making:

@raw {
  //^
}

into:

@raw  {
  //^^
}

And then stylelint fails. Is this a bug or am I using it wrong?

fulls1z3 commented 7 years ago

I was googling for the same issue, and I think it would be useful to post here. I am reproducing the same issue.

Using custom @-rule with postcss, stylefmt, stylelint, and stylelint-config-standard. The following block represents the original SCSS source.

@include breakpoint(tablet) {
  @include size(16px);
}

The space before the brace ("{") gets removed at the stylefmt output, as follows:

@include breakpoint(tablet){
  @include size(16px);
}

Is there anyone else facing the same issue, or already had a solution with this?

emri99 commented 7 years ago

I'm facing same issue @fulls1z3

nmsmith22389 commented 7 years ago

@fulls1z3

I've got the same problem 😭

lowmess commented 7 years ago

seeing the same issue with @page, which is not a custom at-rule.