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

comments removed when dealing with multi-line selectors #322

Open
vvs opened this issue Aug 30, 2017 · 1 comment
Open

comments removed when dealing with multi-line selectors #322

vvs opened this issue Aug 30, 2017 · 1 comment

Comments

@vvs
Copy link

vvs commented Aug 30, 2017

Consider the file test.scss:

.sel, // selector #1
.sel2 /* selector #2 */ {
  display: inline;
}

My stylelint rules include: selector-list-comma-newline-after: always. Stylelint produces no errors for such a file, it is OK with the content.

After formatting both comments are gone! :)

.sel,
.sel2 {
  display: inline;
}
@montogeek
Copy link

Getting a similar behaviour with this code:

#react-root > section > div, /* Get app banner */
#react-root article img { /* Get app bagde */
  display: none;
}

After running stylefmt, /* Get app banner */ comment is removed

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

2 participants