You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vue-scoped-css/no-unused-selector rule has ignoreBEMModifier option
Besides BEM, there are other ways to organize CSS code. For example RSCCS, where the modifier is defined as in the following code. More details here.
Also, development teams can use custom modifier naming. Сreator of the stylelint-selector-bem-pattern made it possible to specify a regular expression to define a modifier. Maybe you should pay attention to this.
The text was updated successfully, but these errors were encountered:
I am not familiar with RSCCS.
Can you write a detailed specification of the features you want to add, in this issue?
Also, can you open a pull request after that?
For example,
replace ignoreBEMModifier option with:
ignoreModifier: {// The preset patterns are available: bem and rsccpreset: 'bem'|'rscc',// Array of regular expressions or strings defining custom modifier naminglist: ['/{componentSelector}--{modifier}/',// this regular expression match bem '/{componentSelector}\\.-{modifier}/',// this regular expression match rscc'&--warn','&--error',// this strings match bem where as modifiers there can only be `warn` and `error`'&.-warn','&.-error',// this strings match rscc where as modifiers there can only be `warn` and `error`'/{componentSelector}-{modifier}/',// this regular expression match custom modifier naming'/{componentSelector}---{modifier}/',// this regular expression match custom modifier naming'/{componentSelector}.{modifier}/',// this regular expression match custom modifier naming]}
vue-scoped-css/no-unused-selector
rule hasignoreBEMModifier
optionBesides
BEM
, there are other ways to organize CSS code. For example RSCCS, where the modifier is defined as in the following code. More details here.Also, development teams can use custom modifier naming. Сreator of the stylelint-selector-bem-pattern made it possible to specify a regular expression to define a modifier. Maybe you should pay attention to this.
The text was updated successfully, but these errors were encountered: