|
| 1 | +{ |
| 2 | + "plugins": [ |
| 3 | + "stylelint-selector-bem-pattern" |
| 4 | + ], |
| 5 | + "extends": "stylelint-config-standard", |
| 6 | + "rules": { |
| 7 | + "at-rule-empty-line-before": null, |
| 8 | + "at-rule-no-unknown": [ |
| 9 | + true, { |
| 10 | + "ignoreAtRules": ["if", "else", "mixin", "include", "content", "for"] |
| 11 | + } |
| 12 | + ], |
| 13 | + "block-closing-brace-empty-line-before": null, |
| 14 | + "block-closing-brace-newline-after": null, |
| 15 | + "color-hex-case": "lower", |
| 16 | + "declaration-colon-newline-after": "always-multi-line", |
| 17 | + "declaration-empty-line-before": "never", |
| 18 | + "declaration-no-important": null, |
| 19 | + "font-family-name-quotes": "always-where-recommended", |
| 20 | + "function-comma-newline-after": null, |
| 21 | + "function-parentheses-space-inside": null, |
| 22 | + "function-url-quotes": "never", |
| 23 | + "max-empty-lines": 2, |
| 24 | + "max-nesting-depth": 3, |
| 25 | + "media-feature-name-no-vendor-prefix": true, |
| 26 | + "no-descending-specificity": null, |
| 27 | + "no-duplicate-selectors": null, |
| 28 | + "no-extra-semicolons": true, |
| 29 | + "number-leading-zero": "never", |
| 30 | + "property-no-vendor-prefix": true, |
| 31 | + "rule-empty-line-before": null, |
| 32 | + "selector-attribute-quotes": "always", |
| 33 | + "selector-list-comma-newline-after": null, |
| 34 | + "selector-max-compound-selectors": 3, |
| 35 | + "selector-max-id": 0, |
| 36 | + "selector-max-specificity": "0,4,0", |
| 37 | + "selector-max-universal": 1, |
| 38 | + "selector-no-vendor-prefix": true, |
| 39 | + "selector-pseudo-element-colon-notation": "single", |
| 40 | + "unit-whitelist": [ "px", "em", "rem", "%", "s", "deg" ], |
| 41 | + "value-no-vendor-prefix": true, |
| 42 | + "plugin/selector-bem-pattern": { |
| 43 | + "componentName": "(([a-z0-9]+(?!-$)-?)+)", |
| 44 | + "componentSelectors": { |
| 45 | + "initial": "\\.{componentName}(((__|--)(([a-z0-9\\[\\]'=]+(?!-$)-?)+))+)?$" |
| 46 | + }, |
| 47 | + } |
| 48 | + } |
| 49 | +} |
0 commit comments