Closed Andrew-Dyachenko closed 6 months ago
Somewhere in your stylelint configuration object you're turning on the built-in selector-class-pattern
rule. You probably don't want to use that rule if you're using this plugin.
You can turn off that rule with:
rules:
selector-class-pattern: null
Yes, that is right!
I connected this rule selector-class-pattern: null
and the error went away.
Now no errors in VSCode
I expect that this rule was included by extending via extends: stylelint-config-sass-guidelines
by default...
There is an alternative instead of disable the rule :
"selector-class-pattern": [ "^(?:(?:o|c|u|t|s|is|has|_|js|qa)-)?[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)(?:__[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+))?(?:--[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*)?(?:\[.+\])?$", { "message": "Class names should match the SUIT CSS naming convention" } ],
ref : https://github.com/btd1337/stylelint-config-sass-guidelines/blob/master/.stylelintrc
Hi there!
This plugin was connected successfully, but the BEM rule does not work - the text editor continues to swear at the BEM stylistics. I'm using native VSCode stylelint plugin for linting styles
.stylelintrc.yml
VSCode text editor marked problems![img-2018-09-24-16-54-26](https://user-images.githubusercontent.com/10127643/45956971-8fdc5900-c01c-11e8-8016-7a0eeb4d6b52.png)
marked problem in styles
Any ideas how to solve it?