Skip to content

Stylelint: Disallow "union" sass selectors #25

Open
@ryelle

Description

@ryelle

Should we add the selector-no-union-class-name rule to disallow inline & in CSS selectors? This would prevent incomplete selectors in SCSS files, but still allow combining selectors.

For example:

.class {
    &-union { /* not allowed */ }
    &.child-class { /* this is okay */ }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    devexaffects developer experience

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions