Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
frux opened this issue Jun 7, 2016 · 5 comments · Fixed by #143
Closed

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

frux opened this issue Jun 7, 2016 · 5 comments · Fixed by #143
Labels

Comments

@frux
Copy link

frux commented Jun 7, 2016

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.

@frux frux changed the title opening brace of @keyframes block don't wrap to the next line opening brace of @keyframes block doesn't wrap to the next line Jun 7, 2016
@matype
Copy link
Owner

matype commented Jun 7, 2016

@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
Copy link
Author

frux commented Jun 7, 2016

@morishitter Yes. Me and stylelint.

@matype
Copy link
Owner

matype commented Jun 7, 2016

OK, I will fix it :)

@matype
Copy link
Owner

matype commented Jun 7, 2016

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

@frux
Copy link
Author

frux commented Jun 7, 2016

@morishitter Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants