matype / stylefmt

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

opening brace of @keyframes block doesn't wrap to the next line #142

Closed frux closed 8 years ago

frux commented 8 years ago

I have the following stylelint.config.js:

module.exports = {
    rules: {
        'block-opening-brace-newline-before': 'always',
        'block-opening-brace-newline-after': 'always',
        'indentation': 4,
        'block-opening-brace-space-before': 'never-single-line'
    }
};

But then I run stylefmt on the following code:

@keyframes spin {
    0%
    {
        transform: translateZ(0) rotate(0);
    }

    100%
    {
        transform: translateZ(0) rotate(360deg);
    }
}

The opening brace of @keyframes block stills be not wrapped to the next line. It causes stylelint block-opening-brace-newline-before error.

matype commented 8 years ago

@frux Thank you for your report. You expected the following code after formatting, right?

@keyframes spin
{
    0%
    {
        transform: translateZ(0) rotate(0);
    }

    100%
    {
        transform: translateZ(0) rotate(360deg);
    }
}
frux commented 8 years ago

@morishitter Yes. Me and stylelint.

matype commented 8 years ago

OK, I will fix it :)

matype commented 8 years ago

@frux Just released stylefmt v3.4.1 that includes a bugfix in this issue. Please update it :)

frux commented 8 years ago

@morishitter Thank you!