-
Notifications
You must be signed in to change notification settings - Fork 774
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
Nesting depth warning on BEM structure #18
Comments
Yep. It's expected. :) |
But it's not a nesting selector. What you suggest for a project using BEM, to get rid of the warning correctly? Disable the sass lint rule ? Or use a mixin instead of & ? Thank you for your fast response :) |
It definitely is a nested selector. It might not generate a compound selector but it still generates a selector nevertheless. I’d recommend you don’t use selector nesting entirely, but that’s really up to you. |
if I avoid the the syntax of the first post, following your advice to "....have the base name repeated. " (from here). For example:
I get another warning from sass-lint about the regexp for the "__". Do I miss something ? |
Okay, that might be a bug then. :) |
Just updated the configuration for |
No warnings now. Thank you! |
Lovely. :) |
The above code will throw a warning (nesting should not be greater than 1) from sass lint:
The text was updated successfully, but these errors were encountered: