L
L
lil_web2020-01-27 09:53:17
css
lil_web, 2020-01-27 09:53:17

How to resolve selectors by class only using Stylelint?

I want the project to have one style of code. Now I'm setting up Stylelintfor 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
 }
]


But how to set it up so that it Stylelintswears at selectors not by class. Tell me please.

It will be a plus if you tell how you set up stylelintrcyours 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 question

Ask a Question

731 491 924 answers to any question