Skip to content

False positive with :host and :host() #23

Open
@veyndan

Description

@veyndan

The plugin gives a false positive that :host() can be nested within :host when it can't.

Source

:host {
    background: hotpink;
}

:host(.foo) {
    background: rebeccapurple;
}

Expected

The file to remain the same.

Actual

:host {
    background: hotpink;

    &(.foo) {
        background: rebeccapurple;
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions