.stylelintrc.js 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. module.exports = {
  2. extends: [
  3. 'stylelint-config-standard',
  4. 'stylelint-config-standard-scss',
  5. 'stylelint-config-standard-vue',
  6. 'stylelint-config-prettier-scss'
  7. ],
  8. plugins: [
  9. 'stylelint-order',
  10. 'stylelint-scss'
  11. ],
  12. rules: {
  13. 'no-empty-source': null,
  14. 'selector-class-pattern': null,
  15. 'selector-pseudo-element-no-unknown': [
  16. true,
  17. {
  18. ignorePseudoElements: ['v-deep']
  19. }
  20. ],
  21. 'function-no-unknown': [
  22. true,
  23. {
  24. ignoreFunctions: ['map-get', 'map-has-key']
  25. }
  26. ],
  27. 'at-rule-no-unknown': [
  28. true,
  29. {
  30. ignoreAtRules: [
  31. 'mixin',
  32. 'include',
  33. 'function',
  34. 'if',
  35. 'else',
  36. 'return',
  37. 'each',
  38. 'for',
  39. 'while'
  40. ]
  41. }
  42. ],
  43. 'order/properties-order': [
  44. 'position',
  45. 'top',
  46. 'right',
  47. 'bottom',
  48. 'left',
  49. 'z-index',
  50. 'display',
  51. 'float',
  52. 'width',
  53. 'height',
  54. 'max-width',
  55. 'max-height',
  56. 'min-width',
  57. 'min-height',
  58. 'padding',
  59. 'padding-top',
  60. 'padding-right',
  61. 'padding-bottom',
  62. 'padding-left',
  63. 'margin',
  64. 'margin-top',
  65. 'margin-right',
  66. 'margin-bottom',
  67. 'margin-left',
  68. 'margin-collapse',
  69. 'margin-top-collapse',
  70. 'margin-right-collapse',
  71. 'margin-bottom-collapse',
  72. 'margin-left-collapse',
  73. 'overflow',
  74. 'overflow-x',
  75. 'overflow-y',
  76. 'clip',
  77. 'clear',
  78. 'font',
  79. 'font-family',
  80. 'font-size',
  81. 'font-smoothing',
  82. 'osx-font-smoothing',
  83. 'font-style',
  84. 'font-weight',
  85. 'line-height',
  86. 'letter-spacing',
  87. 'word-spacing',
  88. 'color',
  89. 'text-align',
  90. 'text-decoration',
  91. 'text-indent',
  92. 'text-overflow',
  93. 'text-rendering',
  94. 'text-size-adjust',
  95. 'text-shadow',
  96. 'text-transform',
  97. 'word-break',
  98. 'word-wrap',
  99. 'white-space',
  100. 'vertical-align',
  101. 'list-style',
  102. 'list-style-type',
  103. 'list-style-position',
  104. 'list-style-image',
  105. 'pointer-events',
  106. 'cursor',
  107. 'background',
  108. 'background-color',
  109. 'border',
  110. 'border-radius',
  111. 'content',
  112. 'outline',
  113. 'outline-offset',
  114. 'opacity',
  115. 'filter',
  116. 'visibility',
  117. 'size',
  118. 'transform',
  119. 'transition',
  120. 'animation'
  121. ]
  122. }
  123. }