.stylelintrc 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. {
  2. "extends": "stylelint-config-standard",
  3. "plugins": [
  4. "stylelint-order",
  5. "stylelint-scss"
  6. ],
  7. "ignoreFiles": ["**/*.js"],
  8. "rules": {
  9. "at-rule-no-unknown": [true, {
  10. "ignoreAtRules": ["include", "mixin", "function", "if", "else", "return", "each", "extend", "for"]
  11. }],
  12. "block-closing-brace-newline-after": ["always", {
  13. "ignoreAtRules": ["if", "else"]
  14. }],
  15. "color-hex-case": "lower",
  16. "string-quotes": "single",
  17. "font-family-name-quotes": "always-where-recommended",
  18. "number-leading-zero": "never",
  19. "at-rule-empty-line-before": ["always", {
  20. "ignore": [
  21. "after-comment",
  22. "inside-block",
  23. "blockless-after-same-name-blockless",
  24. "blockless-after-blockless"
  25. ]
  26. }],
  27. "selector-pseudo-class-no-unknown": [
  28. true, {
  29. "ignorePseudoClasses": [
  30. "global"
  31. ]
  32. }
  33. ],
  34. "indentation": 2,
  35. "order/order": [
  36. "dollar-variables",
  37. {
  38. "type": "at-rule",
  39. "name": "mixin"
  40. },
  41. {
  42. "type": "at-rule",
  43. "name": "keyframes"
  44. },
  45. {
  46. "type": "at-rule",
  47. "name": "include"
  48. },
  49. {
  50. "type": "at-rule",
  51. "name": "extend"
  52. },
  53. "declarations",
  54. "rules",
  55. "at-rules"
  56. ],
  57. "order/properties-order": [
  58. [
  59. "position",
  60. "top",
  61. "right",
  62. "bottom",
  63. "left",
  64. "z-index",
  65. "display",
  66. "align-content",
  67. "align-items",
  68. "align-self",
  69. "flex",
  70. "flex-basis",
  71. "flex-direction",
  72. "flex-flow",
  73. "flex-grow",
  74. "flex-shrink",
  75. "flex-wrap",
  76. "justify-content",
  77. "order",
  78. "float",
  79. "width",
  80. "height",
  81. "max-width",
  82. "max-height",
  83. "min-width",
  84. "min-height",
  85. "margin",
  86. "margin-top",
  87. "margin-right",
  88. "margin-bottom",
  89. "margin-left",
  90. "margin-collapse",
  91. "margin-top-collapse",
  92. "margin-right-collapse",
  93. "margin-bottom-collapse",
  94. "margin-left-collapse",
  95. "padding",
  96. "padding-top",
  97. "padding-right",
  98. "padding-bottom",
  99. "padding-left",
  100. "overflow",
  101. "overflow-x",
  102. "overflow-y",
  103. "clip",
  104. "clear",
  105. "font",
  106. "font-family",
  107. "font-size",
  108. "font-smoothing",
  109. "osx-font-smoothing",
  110. "font-style",
  111. "font-weight",
  112. "hyphens",
  113. "src",
  114. "line-height",
  115. "letter-spacing",
  116. "word-spacing",
  117. "color",
  118. "text-align",
  119. "text-decoration",
  120. "text-indent",
  121. "text-overflow",
  122. "text-rendering",
  123. "text-size-adjust",
  124. "text-shadow",
  125. "text-transform",
  126. "word-break",
  127. "word-wrap",
  128. "white-space",
  129. "vertical-align",
  130. "list-style",
  131. "list-style-type",
  132. "list-style-position",
  133. "list-style-image",
  134. "pointer-events",
  135. "cursor",
  136. "background",
  137. "background-attachment",
  138. "background-clip",
  139. "background-color",
  140. "background-image",
  141. "background-position",
  142. "background-repeat",
  143. "background-size",
  144. "border",
  145. "border-collapse",
  146. "border-top",
  147. "border-right",
  148. "border-bottom",
  149. "border-left",
  150. "border-color",
  151. "border-image",
  152. "border-top-color",
  153. "border-right-color",
  154. "border-bottom-color",
  155. "border-left-color",
  156. "border-spacing",
  157. "border-style",
  158. "border-top-style",
  159. "border-right-style",
  160. "border-bottom-style",
  161. "border-left-style",
  162. "border-width",
  163. "border-top-width",
  164. "border-right-width",
  165. "border-bottom-width",
  166. "border-left-width",
  167. "border-radius",
  168. "border-top-right-radius",
  169. "border-bottom-right-radius",
  170. "border-bottom-left-radius",
  171. "border-top-left-radius",
  172. "border-radius-topright",
  173. "border-radius-bottomright",
  174. "border-radius-bottomleft",
  175. "border-radius-topleft",
  176. "content",
  177. "quotes",
  178. "outline",
  179. "outline-offset",
  180. "outline-width",
  181. "outline-style",
  182. "outline-color",
  183. "opacity",
  184. "filter",
  185. "visibility",
  186. "size",
  187. "zoom",
  188. "transform",
  189. "box-align",
  190. "box-flex",
  191. "box-orient",
  192. "box-pack",
  193. "box-shadow",
  194. "box-sizing",
  195. "table-layout",
  196. "animation",
  197. "animation-delay",
  198. "animation-duration",
  199. "animation-iteration-count",
  200. "animation-name",
  201. "animation-play-state",
  202. "animation-timing-function",
  203. "animation-fill-mode",
  204. "transition",
  205. "transition-delay",
  206. "transition-duration",
  207. "transition-property",
  208. "transition-timing-function",
  209. "backface-visibility",
  210. "resize",
  211. "appearance",
  212. "user-select",
  213. "interpolation-mode",
  214. "direction",
  215. "marks",
  216. "page",
  217. "set-link-source",
  218. "unicode-bidi",
  219. "speak"
  220. ],
  221. { "unspecified": "bottomAlphabetical" }
  222. ]
  223. }
  224. }