Skip to content

Namespaces are confused as selectors #154

@OddieWallie

Description

@OddieWallie

In our scss we group some of our attributes in their namespace.

.block__element--modifier {
  font: {
    family: sans-serif;
    size: 16px;
    weight: 300;
  }
}

When linting, I get a Invalid component selector ".block__element--modifier font:" error. I'm using the bem preset

Since namespaces could be anything (font:, background:, text:, etc); I tried adding an ignoreSelectors rule to target these. I couldn't find an expression which worked.

Is there something which already resolves this issue (not sure if I've missed something)?

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