After struggling a lot, and being inspired by issue #117, I was able to produce a solution by adding the !hasBlock(atrule) check at the highlighted section. In this case, an include at-rule containing only child at-rule(s) are not considered to be empty, and the space after the opening brace has been placed/formatted correctly.
…ild at-rules
I'm using "include" @-rule with postcss, stylefmt, stylelint, and stylelint-config-standard. The following block represents the original SCSS source.
The space before the brace ("{") gets removed at the stylefmt output, as follows:
After struggling a lot, and being inspired by issue #117, I was able to produce a solution by adding the !hasBlock(atrule) check at the highlighted section. In this case, an include at-rule containing only child at-rule(s) are not considered to be empty, and the space after the opening brace has been placed/formatted correctly.