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

insertNewLineBetweenSelectors without comma #19

Closed
yukulele opened this issue Jan 19, 2018 · 5 comments
Closed

insertNewLineBetweenSelectors without comma #19

yukulele opened this issue Jan 19, 2018 · 5 comments

Comments

@yukulele
Copy link

yukulele commented Jan 19, 2018

insertNewLineBetweenSelectors should not add comma (or optional)

both are valid in stylus:

*,
*:before,
*:after
  box-sizing border-box

and

*
*:before
*:after
  box-sizing border-box
@ThisIsManta
Copy link
Owner

How about adding a new formatting option called insertCommaBetweenSelectors?
This could work with insertNewLineBetweenSelectors.

@yukulele
Copy link
Author

or rename it:

selectorsSeparator: ["newLine", "comma", "both"]

@ThisIsManta
Copy link
Owner

Nice idea. Do you think the below is enough?
image

@ThisIsManta
Copy link
Owner

selectorSeparator formatting option is added at version 2.8.0.

Cheers!

@yukulele
Copy link
Author

perfect, thanks!

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

No branches or pull requests

2 participants