Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

comments removed when dealing with multi-line selectors #322

@vvs

Description

@vvs

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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions