Skip to content

Fix nesting-selector-no-missing-scoping-root false positives for CSS-in-JS #8727

@tu4mo

Description

@tu4mo

What minimal example or steps are needed to reproduce the bug?

const Root = styled.div`
  &::before {
    color: red;
  }
`;

What minimal configuration is needed to reproduce the bug?

{
  "nesting-selector-no-missing-scoping-root": true
}

How did you run Stylelint?

VS Code extension.

Which Stylelint-related dependencies are you using?

    "stylelint": "16.23.1",
    "stylelint-config-recommended": "17.0.0",

What did you expect to happen?

No error.

What actually happened?

Unexpected missing scoping root (nesting-selector-no-missing-scoping-root)

Do you have a proposal to fix the bug?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: wipis being worked on by someonesyntax: css-in-jsrelates to JS objects & template literals

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions