.stylelintrc.js 629 B

123456789101112131415161718192021222324
  1. module.exports = {
  2. extends: ['stylelint-config-recess-order', 'stylelint-config-prettier'],
  3. overrides: [
  4. {
  5. files: ['.js', '.jsx', '.ts'].flatMap((ext) => [`*${ext}`, `**/*${ext}`]),
  6. customSyntax: '@stylelint/postcss-css-in-js',
  7. },
  8. {
  9. files: ['.vue', '.htm', '.html'].flatMap((ext) => [
  10. `*${ext}`,
  11. `**/*${ext}`,
  12. ]),
  13. customSyntax: 'postcss-html',
  14. },
  15. {
  16. files: ['.md', '.markdown'].flatMap((ext) => [`*${ext}`, `**/*${ext}`]),
  17. customSyntax: 'postcss-markdown',
  18. },
  19. {
  20. files: ['**/*.scss'],
  21. customSyntax: 'postcss-scss',
  22. },
  23. ],
  24. }