.stylelintrc.cjs 646 B

12345678910111213141516171819
  1. module.exports = {
  2. extends: ['stylelint-config-recess-order', 'stylelint-config-standard-scss', 'stylelint-config-standard-vue/scss'],
  3. rules: {
  4. // fix element-plus class error https://github.com/WordPress/gutenberg/issues/28616
  5. 'selector-class-pattern': [
  6. '^([a-z][a-z0-9]*)(-[a-z0-9]+)*((__([a-z][a-z0-9]*)(-[a-z0-9]+)*)?(--([a-z][a-z0-9]*)(-[a-z0-9]+)*)?)$',
  7. {
  8. message: 'Expected class pattern to be BEM style',
  9. },
  10. ],
  11. 'no-descending-specificity': null,
  12. 'font-family-no-missing-generic-family-keyword': [
  13. true,
  14. {
  15. ignoreFontFamilies: ['DINAlternate'],
  16. },
  17. ],
  18. },
  19. };