mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-25 10:31:05 +00:00
Stylelint: CSS BEM syntax allowed
This commit is contained in:
parent
3c7457801f
commit
d597a9df9a
1 changed files with 10 additions and 0 deletions
|
@ -8,5 +8,15 @@ module.exports = {
|
|||
'font-family-no-missing-generic-family-keyword': null,
|
||||
'no-descending-specificity': null,
|
||||
'scss/at-rule-no-unknown': true,
|
||||
'selector-class-pattern': [
|
||||
'^[a-z]([-]?[a-z0-9]+)*(__[a-z0-9]([-]?[a-z0-9]+)*)?(--[a-z0-9]([-]?[a-z0-9]+)*)?$',
|
||||
{
|
||||
/** This option will resolve nested selectors with & interpolation. - https://stylelint.io/user-guide/rules/selector-class-pattern/#resolvenestedselectors-true--false-default-false */
|
||||
resolveNestedSelectors: true,
|
||||
message: function expected(selectorValue) {
|
||||
return `Expected class selector "${selectorValue}" to match BEM CSS pattern https://en.bem.info/methodology/css. Selector validation tool: https://regexr.com/3apms`;
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue