.stylelintrc.js 1017 B

12345678910111213141516171819202122232425262728293031323334
  1. module.exports = {
  2. extends: '@wagtail/stylelint-config-wagtail',
  3. rules: {
  4. 'scss/at-rule-no-unknown': [
  5. true,
  6. {
  7. ignoreAtRules: [
  8. 'tailwind',
  9. 'apply',
  10. 'variants',
  11. 'responsive',
  12. 'screen',
  13. 'layer',
  14. ],
  15. },
  16. ],
  17. 'no-invalid-position-at-import-rule': [
  18. true,
  19. {
  20. ignoreAtRules: ['tailwind', 'use'],
  21. },
  22. ],
  23. // Would be valuable for strict BEM components but is too hard to enforce with legacy code.
  24. 'no-descending-specificity': null,
  25. // Override stylelint-config-wagtail’s options to allow all float and clear values for now.
  26. 'declaration-property-value-allowed-list': {
  27. // 'clear': ['both', 'none'],
  28. // 'float': ['inline-start', 'inline-end', 'none', 'unset'],
  29. 'text-align': ['start', 'end', 'center'],
  30. },
  31. // Disable declaration-strict-value until we are in a position to enforce it.
  32. 'scale-unlimited/declaration-strict-value': null,
  33. },
  34. };