stylelint.config.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. module.exports = {
  2. extends: ['stylelint-config-standard-scss'],
  3. ignoreFiles: [
  4. 'app/javascript/styles/mastodon/reset.scss',
  5. 'coverage/**/*',
  6. 'node_modules/**/*',
  7. 'public/assets/**/*',
  8. 'public/packs/**/*',
  9. 'public/packs-test/**/*',
  10. 'vendor/**/*',
  11. ],
  12. reportDescriptionlessDisables: true,
  13. reportInvalidScopeDisables: true,
  14. reportNeedlessDisables: true,
  15. rules: {
  16. 'at-rule-empty-line-before': null,
  17. 'color-function-notation': null,
  18. 'color-hex-length': null,
  19. 'declaration-block-no-redundant-longhand-properties': null,
  20. 'no-descending-specificity': null,
  21. 'no-duplicate-selectors': null,
  22. 'number-max-precision': 8,
  23. 'property-no-vendor-prefix': null,
  24. 'selector-class-pattern': null,
  25. 'selector-id-pattern': null,
  26. 'value-keyword-case': null,
  27. 'value-no-vendor-prefix': null,
  28. 'scss/dollar-variable-empty-line-before': null,
  29. 'scss/no-global-function-names': null,
  30. },
  31. overrides: [
  32. {
  33. 'files': ['app/javascript/styles/mailer.scss'],
  34. rules: {
  35. 'property-no-unknown': [
  36. true,
  37. {
  38. ignoreProperties: [
  39. '/^mso-/',
  40. ] },
  41. ],
  42. },
  43. },
  44. ],
  45. };