stylefmt icon indicating copy to clipboard operation
stylefmt copied to clipboard

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

Open saiichihashimoto opened this issue 8 years ago • 4 comments

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?

saiichihashimoto avatar Aug 10 '16 04:08 saiichihashimoto

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?

fulls1z3 avatar Oct 25 '16 19:10 fulls1z3

I'm facing same issue @fulls1z3

emri99 avatar Nov 06 '16 02:11 emri99

@fulls1z3

I've got the same problem 😭

nmsmith22389 avatar Mar 03 '17 08:03 nmsmith22389

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

lowmess avatar Apr 16 '17 00:04 lowmess