Skip to content

Commit

Permalink
Merge pull request #28 from atolye15/refactor/update-some-rules
Browse files Browse the repository at this point in the history
mixed: update some rules and fix some problems
  • Loading branch information
hsnaydd authored Oct 30, 2023
2 parents 4fa4513 + c722ec3 commit a02033e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ module.exports = {
'scss/at-import-partial-extension': 'never',
'scss/at-mixin-pattern': '^[_-]?[a-z]+([a-z0-9-]+[a-z0-9]+)?$',
'scss/at-rule-no-unknown': true,
'scss/comment-no-empty': null,
'scss/declaration-nested-properties-no-divided-groups': true,
'scss/dollar-variable-colon-space-after': 'always',
'scss/dollar-variable-colon-space-before': 'never',
Expand All @@ -169,6 +170,15 @@ module.exports = {
'scss/operator-no-unspaced': true,
'scss/selector-no-redundant-nesting-selector': true,
'selector-attribute-quotes': 'always',
'selector-class-pattern': [
'^[a-z]([-]?[a-z0-9]+)*(__[a-z0-9]([-]?[a-z0-9]+)*)?(--[a-z0-9]([-]?[a-z0-9]+)*)?$',
{
resolveNestedSelectors: true,
message: function expected(selectorValue) {
return `Expected class selector "${selectorValue}" to match BEM CSS pattern https://en.bem.info/methodology/css.`;
},
},
],
'selector-max-attribute': 2,
'selector-max-class': 3,
'selector-max-compound-selectors': 3,
Expand All @@ -177,6 +187,7 @@ module.exports = {
'selector-max-universal': 1,
'selector-no-qualifying-type': true,
'selector-no-vendor-prefix': true,
'selector-pseudo-class-no-unknown': [true, { ignorePseudoClasses: ['global'] }],
'selector-pseudo-element-colon-notation': 'double',
'selector-pseudo-element-no-unknown': true,
'shorthand-property-no-redundant-values': true,
Expand Down

0 comments on commit a02033e

Please sign in to comment.