Answer the question
In order to leave comments, you need to log in
How to resolve selectors by class only using Stylelint?
I want the project to have one style of code. Now I'm setting up Stylelint
for BEM.
Understood the name:
"selector-class-pattern": [
"^[A-Z][a-z0-9]*([A-Z][a-z0-9]+)*(-[A-Z][a-z0-9]+([A-Z][a-z0-9]+)*)?(_[a-z0-9]+([A-Z][a-z0-9]+)*)?(_[a-z0-9]+([A-Z][a-z0-9]+)*)?$",
{
"resolveNestedSelectors": true
}
]
Stylelint
swears at selectors not by class. Tell me please. stylelintrc
yours for BEM.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question