You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.6 KiB

  1. module.exports = {
  2. root: true,
  3. plugins: ["stylelint-order"],
  4. extends: ["stylelint-config-standard", "stylelint-config-prettier"],
  5. rules: {
  6. "selector-pseudo-class-no-unknown": [
  7. true,
  8. {
  9. ignorePseudoClasses: ["deep"]
  10. }
  11. ],
  12. "selector-pseudo-element-no-unknown": [
  13. true,
  14. {
  15. ignorePseudoElements: ["v-deep", ":deep"]
  16. }
  17. ],
  18. "at-rule-no-unknown": [
  19. true,
  20. {
  21. ignoreAtRules: [
  22. "tailwind",
  23. "apply",
  24. "variants",
  25. "responsive",
  26. "screen",
  27. "function",
  28. "if",
  29. "each",
  30. "include",
  31. "mixin"
  32. ]
  33. }
  34. ],
  35. "no-empty-source": null,
  36. "named-grid-areas-no-invalid": null,
  37. "unicode-bom": "never",
  38. "no-descending-specificity": null,
  39. "font-family-no-missing-generic-family-keyword": null,
  40. "declaration-colon-space-after": "always-single-line",
  41. "declaration-colon-space-before": "never",
  42. "rule-empty-line-before": [
  43. "always",
  44. {
  45. ignore: ["after-comment", "first-nested"]
  46. }
  47. ],
  48. "unit-no-unknown": [true, { ignoreUnits: ["rpx"] }],
  49. "order/order": [
  50. [
  51. "dollar-variables",
  52. "custom-properties",
  53. "at-rules",
  54. "declarations",
  55. {
  56. type: "at-rule",
  57. name: "supports"
  58. },
  59. {
  60. type: "at-rule",
  61. name: "media"
  62. },
  63. "rules"
  64. ],
  65. { severity: "warning" }
  66. ]
  67. },
  68. ignoreFiles: ["**/*.js", "**/*.jsx", "**/*.tsx", "**/*.ts", "**/*.json"]
  69. };