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

Add support for function-comma-newline-after #303

Open
keithjgrant opened this issue May 9, 2017 · 0 comments
Open

Add support for function-comma-newline-after #303

keithjgrant opened this issue May 9, 2017 · 0 comments

Comments

@keithjgrant
Copy link

https://stylelint.io/user-guide/rules/function-comma-newline-after/

When you have a really long function, like the one below, stylefmt smashes it all onto the same line. It would be nice to have an option to keep them separate:

  background-image: linear-gradient(
    to bottom,
    hsla(200, 50%, 10%, 0.3),
    hsla(300, 50%, 10%, 0.3),
    hsla(100, 50%, 10%, 0.3),
    hsla(200, 50%, 10%, 0.3),
    hsla(300, 50%, 10%, 0.3),
    hsla(200, 50%, 10%, 0.3),
  );

stylefmt currently produces:

  background-image: linear-gradient(to bottom, hsla(200, 50%, 10%, 0.3), hsla(300, 50%, 10%, 0.3), hsla(100, 50%, 10%, 0.3), hsla(200, 50%, 10%, 0.3), hsla(300, 50%, 10%, 0.3), hsla(200, 50%, 10%, 0.3),);

…which is not readable.

umesan pushed a commit to umesan/stylefmt that referenced this issue May 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant