Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Namespaces are confused as selectors #154

Open
OddieWallie opened this issue Jun 15, 2020 · 0 comments
Open

Namespaces are confused as selectors #154

OddieWallie opened this issue Jun 15, 2020 · 0 comments

Comments

@OddieWallie
Copy link

OddieWallie commented Jun 15, 2020

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)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant