stylelint.config.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* eslint-env node */
  2. module.exports = {
  3. customSyntax: 'postcss-jsx',
  4. extends: ['stylelint-config-recommended', 'stylelint-config-prettier'],
  5. rules: {
  6. 'declaration-colon-newline-after': null,
  7. // This is formatting related
  8. 'declaration-bang-space-before': null,
  9. // Doesn't work when we use values from theme
  10. 'unit-no-unknown': null,
  11. 'font-family-no-missing-generic-family-keyword': null,
  12. 'media-feature-name-no-unknown': null,
  13. // Does not seem useful
  14. 'no-descending-specificity': null,
  15. 'property-no-unknown': [
  16. true,
  17. {
  18. // originX, orginY are used with framer motion
  19. ignoreProperties: ['origin-x', 'origin-y'],
  20. },
  21. ],
  22. // Allow empty template eg - styled(thing)``
  23. 'no-empty-source': null,
  24. 'property-disallowed-list': [
  25. // Prefer `gap` over `grid-gap`, it does the same thing
  26. 'grid-gap',
  27. // Can't set per-property custom messages.. so try and bring them here
  28. {
  29. message: 'Disallowed property. (See `stylelint.config.js` as to why)',
  30. },
  31. ],
  32. },
  33. };