.sass-lint.yml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # use the default settings to keep this file small
  2. options:
  3. merge-default-rules: true
  4. rules:
  5. # BEM all the things
  6. class-name-format:
  7. - 1
  8. - convention: hyphenatedbem
  9. placeholder-name-format:
  10. - 1
  11. - convention: hyphenatedbem
  12. # sassception! allow a maximum nesting depth of 4 levels deep
  13. nesting-depth:
  14. - 1
  15. - max-depth: 4
  16. # those mixins do not have to be used before any other declarations
  17. mixins-before-declarations:
  18. - 1
  19. - exclude: [ 'mediaquery', 'attention' ]
  20. # allow non-leading zero values like .2rem or .4rem
  21. leading-zero: 0
  22. # do not sort properties by name
  23. property-sort-order: 0
  24. # allow nested attribute and pseudo-selectors, this makes stuff
  25. # more readable for humans and allow some edge-case-nesting issues,
  26. # but still force element nesting, so the nesting-depth-rule makes sense
  27. force-pseudo-nesting: 0
  28. force-attribute-nesting: 0
  29. # allow stuff like 1/2 or 1/4
  30. space-around-operator: 0
  31. # allow warnings for better sass-maps debugging
  32. no-warn: 0