stylelint.config.js 945 B

123456789101112131415161718192021222324252627282930313233
  1. /* eslint-env node */
  2. module.exports = {
  3. processors: ['stylelint-processor-styled-components'],
  4. extends: [
  5. 'stylelint-config-recommended',
  6. 'stylelint-config-styled-components',
  7. 'stylelint-config-prettier',
  8. ],
  9. rules: {
  10. 'declaration-colon-newline-after': null,
  11. // This is formatting related
  12. 'declaration-bang-space-before': null,
  13. // Doesn't work when we use values from theme
  14. 'unit-no-unknown': null,
  15. 'font-family-no-missing-generic-family-keyword': null,
  16. // Does not seem useful
  17. 'no-descending-specificity': null,
  18. 'property-no-unknown': [true, {ignoreProperties: [/\$dummyValue/]}],
  19. 'property-disallowed-list': [
  20. // Prefer `gap` over `grid-gap`, it does the same thing
  21. 'grid-gap',
  22. // Can't set per-property custom messages.. so try and bring them here
  23. {
  24. message: 'Disallowed property. (See `stylelint.config.js` as to why)',
  25. },
  26. ],
  27. },
  28. };