.stylelintrc.json 754 B

1234567891011121314151617181920212223242526
  1. {
  2. "plugins": ["stylelint-selector-bem-pattern", "stylelint-scss"],
  3. "extends": ["stylelint-config-recommended", "stylelint-config-sass-guidelines", "stylelint-config-prettier"],
  4. "rules": {
  5. "selector-class-pattern": null,
  6. "selector-no-qualifying-type": [
  7. true,
  8. {
  9. "ignore": ["attribute", "class"]
  10. }
  11. ],
  12. "string-no-newline": null,
  13. "indentation": 2,
  14. "string-quotes": "single",
  15. "max-nesting-depth": 2,
  16. "plugin/selector-bem-pattern": {
  17. "preset": "bem",
  18. "componentName": "(([a-z0-9]+(?!-$)-?)+)",
  19. "componentSelectors": {
  20. "initial": "\\.{componentName}(((__|--)(([a-z0-9\\[\\]'=]+(?!-$)-?)+))+)?$"
  21. },
  22. "ignoreSelectors": [".*\\.has-.*", ".*\\.is-.*"]
  23. }
  24. }
  25. }