.stylelintrc.json 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446
  1. {
  2. "extends": "stylelint-config-standard",
  3. "plugins": [
  4. "stylelint-no-browser-hacks/lib",
  5. "stylelint-order"
  6. ],
  7. "rules": {
  8. "comment-empty-line-before": null,
  9. "function-linear-gradient-no-nonstandard-direction": null,
  10. "function-whitespace-after": null,
  11. "no-descending-specificity": null,
  12. "no-duplicate-selectors": null,
  13. "no-unknown-animations": true,
  14. "media-feature-name-no-unknown": [true, {
  15. "ignoreMediaFeatureNames": [
  16. "prefers-reduced-motion",
  17. "min--moz-device-pixel-ratio"
  18. ]
  19. }],
  20. "number-leading-zero": "always",
  21. "order/order": [
  22. "custom-properties",
  23. "dollar-variables",
  24. {
  25. "type": "at-rule",
  26. "hasBlock": false
  27. },
  28. "declarations",
  29. "rules",
  30. {
  31. "type": "at-rule",
  32. "hasBlock": true
  33. }
  34. ],
  35. "order/properties-order": [
  36. "position",
  37. "z-index",
  38. "top",
  39. "right",
  40. "bottom",
  41. "left",
  42. "display",
  43. "visibility",
  44. "float",
  45. "clear",
  46. "overflow",
  47. "overflow-x",
  48. "overflow-y",
  49. "-ms-overflow-x",
  50. "-ms-overflow-y",
  51. "-webkit-overflow-scrolling",
  52. "clip",
  53. "zoom",
  54. "flex",
  55. "flex-flow",
  56. "flex-direction",
  57. "flex-wrap",
  58. "flex-basis",
  59. "flex-grow",
  60. "flex-shrink",
  61. "flex-order",
  62. "flex-pack",
  63. "-ms-grid",
  64. "grid",
  65. "grid-area",
  66. "grid-template",
  67. "grid-template-areas",
  68. "-ms-grid-rows",
  69. "grid-template-rows",
  70. "-ms-grid-columns",
  71. "grid-template-columns",
  72. "grid-row",
  73. "-ms-grid-row",
  74. "grid-row-start",
  75. "grid-row-end",
  76. "grid-column",
  77. "-ms-grid-column",
  78. "grid-column-start",
  79. "grid-column-end",
  80. "grid-auto-rows",
  81. "grid-auto-columns",
  82. "grid-auto-flow",
  83. "grid-gap",
  84. "grid-row-gap",
  85. "grid-column-gap",
  86. "-ms-grid-row-align",
  87. "-ms-grid-column-align",
  88. "place-content",
  89. "place-items",
  90. "align-content",
  91. "align-items",
  92. "align-self",
  93. "justify-content",
  94. "justify-items",
  95. "justify-self",
  96. "order",
  97. "-webkit-box-sizing",
  98. "-moz-box-sizing",
  99. "box-sizing",
  100. "width",
  101. "min-width",
  102. "max-width",
  103. "height",
  104. "min-height",
  105. "max-height",
  106. "margin",
  107. "margin-top",
  108. "margin-right",
  109. "margin-bottom",
  110. "margin-left",
  111. "padding",
  112. "padding-top",
  113. "padding-right",
  114. "padding-bottom",
  115. "padding-left",
  116. "table-layout",
  117. "-webkit-columns",
  118. "-moz-columns",
  119. "columns",
  120. "-webkit-column-span",
  121. "-moz-column-span",
  122. "column-span",
  123. "-webkit-column-width",
  124. "-moz-column-width",
  125. "column-width",
  126. "-webkit-column-count",
  127. "-moz-column-count",
  128. "column-count",
  129. "-webkit-column-fill",
  130. "-moz-column-fill",
  131. "column-fill",
  132. "-webkit-column-gap",
  133. "-moz-column-gap",
  134. "column-gap",
  135. "-webkit-column-rule",
  136. "-moz-column-rule",
  137. "column-rule",
  138. "-webkit-column-rule-width",
  139. "-moz-column-rule-width",
  140. "column-rule-width",
  141. "-webkit-column-rule-style",
  142. "-moz-column-rule-style",
  143. "column-rule-style",
  144. "-webkit-column-rule-color",
  145. "-moz-column-rule-color",
  146. "column-rule-color",
  147. "empty-cells",
  148. "caption-side",
  149. "border-spacing",
  150. "border-collapse",
  151. "$counter-style",
  152. "list-style",
  153. "list-style-position",
  154. "list-style-type",
  155. "list-style-image",
  156. "content",
  157. "quotes",
  158. "counter-reset",
  159. "counter-increment",
  160. "resize",
  161. "cursor",
  162. "-webkit-user-select",
  163. "-moz-user-select",
  164. "-ms-user-select",
  165. "user-select",
  166. "nav-index",
  167. "nav-up",
  168. "nav-right",
  169. "nav-down",
  170. "nav-left",
  171. "-webkit-transition",
  172. "-moz-transition",
  173. "-ms-transition",
  174. "-o-transition",
  175. "transition",
  176. "-webkit-transition-delay",
  177. "-moz-transition-delay",
  178. "-ms-transition-delay",
  179. "-o-transition-delay",
  180. "transition-delay",
  181. "-webkit-transition-timing-function",
  182. "-moz-transition-timing-function",
  183. "-ms-transition-timing-function",
  184. "-o-transition-timing-function",
  185. "transition-timing-function",
  186. "-webkit-transition-duration",
  187. "-moz-transition-duration",
  188. "-ms-transition-duration",
  189. "-o-transition-duration",
  190. "transition-duration",
  191. "-webkit-transition-property",
  192. "-moz-transition-property",
  193. "-ms-transition-property",
  194. "-o-transition-property",
  195. "transition-property",
  196. "-webkit-transform",
  197. "-moz-transform",
  198. "-ms-transform",
  199. "-o-transform",
  200. "transform",
  201. "-webkit-transform-origin",
  202. "-moz-transform-origin",
  203. "-ms-transform-origin",
  204. "-o-transform-origin",
  205. "transform-origin",
  206. "$keyframes",
  207. "-webkit-animation",
  208. "-moz-animation",
  209. "-ms-animation",
  210. "-o-animation",
  211. "animation",
  212. "-webkit-animation-name",
  213. "-moz-animation-name",
  214. "-ms-animation-name",
  215. "-o-animation-name",
  216. "animation-name",
  217. "-webkit-animation-duration",
  218. "-moz-animation-duration",
  219. "-ms-animation-duration",
  220. "-o-animation-duration",
  221. "animation-duration",
  222. "-webkit-animation-play-state",
  223. "-moz-animation-play-state",
  224. "-ms-animation-play-state",
  225. "-o-animation-play-state",
  226. "animation-play-state",
  227. "-webkit-animation-timing-function",
  228. "-moz-animation-timing-function",
  229. "-ms-animation-timing-function",
  230. "-o-animation-timing-function",
  231. "animation-timing-function",
  232. "-webkit-animation-delay",
  233. "-moz-animation-delay",
  234. "-ms-animation-delay",
  235. "-o-animation-delay",
  236. "animation-delay",
  237. "-webkit-animation-iteration-count",
  238. "-moz-animation-iteration-count",
  239. "-ms-animation-iteration-count",
  240. "-o-animation-iteration-count",
  241. "animation-iteration-count",
  242. "-webkit-animation-direction",
  243. "-moz-animation-direction",
  244. "-ms-animation-direction",
  245. "-o-animation-direction",
  246. "animation-direction",
  247. "text-align",
  248. "-webkit-text-align-last",
  249. "-moz-text-align-last",
  250. "-ms-text-align-last",
  251. "text-align-last",
  252. "vertical-align",
  253. "white-space",
  254. "text-decoration",
  255. "text-emphasis",
  256. "text-emphasis-color",
  257. "text-emphasis-style",
  258. "text-emphasis-position",
  259. "text-indent",
  260. "-ms-text-justify",
  261. "text-justify",
  262. "text-transform",
  263. "letter-spacing",
  264. "word-spacing",
  265. "-ms-writing-mode",
  266. "text-outline",
  267. "text-transform",
  268. "text-wrap",
  269. "text-overflow",
  270. "-ms-text-overflow",
  271. "text-overflow-ellipsis",
  272. "text-overflow-mode",
  273. "-ms-word-wrap",
  274. "word-wrap",
  275. "word-break",
  276. "-ms-word-break",
  277. "-moz-tab-size",
  278. "-o-tab-size",
  279. "tab-size",
  280. "-webkit-hyphens",
  281. "-moz-hyphens",
  282. "hyphens",
  283. "pointer-events",
  284. "direction",
  285. "unicode-bidi",
  286. "orphans",
  287. "widows",
  288. "object-fit",
  289. "object-position",
  290. "opacity",
  291. "filter:progid:DXImageTransform.Microsoft.Alpha(Opacity",
  292. "-ms-filter:\\'progid:DXImageTransform.Microsoft.Alpha",
  293. "-webkit-filter",
  294. "-ms-filter",
  295. "filter",
  296. "-ms-interpolation-mode",
  297. "color",
  298. "border",
  299. "border-collapse",
  300. "border-width",
  301. "border-style",
  302. "border-color",
  303. "border-top",
  304. "border-top-width",
  305. "border-top-style",
  306. "border-top-color",
  307. "border-right",
  308. "border-right-width",
  309. "border-right-style",
  310. "border-right-color",
  311. "border-bottom",
  312. "border-bottom-width",
  313. "border-bottom-style",
  314. "border-bottom-color",
  315. "border-left",
  316. "border-left-width",
  317. "border-left-style",
  318. "border-left-color",
  319. "-webkit-border-radius",
  320. "-moz-border-radius",
  321. "border-radius",
  322. "-webkit-border-top-left-radius",
  323. "-moz-border-radius-topleft",
  324. "border-top-left-radius",
  325. "-webkit-border-top-right-radius",
  326. "-moz-border-radius-topright",
  327. "border-top-right-radius",
  328. "-webkit-border-bottom-right-radius",
  329. "-moz-border-radius-bottomright",
  330. "border-bottom-right-radius",
  331. "-webkit-border-bottom-left-radius",
  332. "-moz-border-radius-bottomleft",
  333. "border-bottom-left-radius",
  334. "-webkit-border-image",
  335. "-moz-border-image",
  336. "-o-border-image",
  337. "border-image",
  338. "-webkit-border-image-source",
  339. "-moz-border-image-source",
  340. "-o-border-image-source",
  341. "border-image-source",
  342. "-webkit-border-image-slice",
  343. "-moz-border-image-slice",
  344. "-o-border-image-slice",
  345. "border-image-slice",
  346. "-webkit-border-image-width",
  347. "-moz-border-image-width",
  348. "-o-border-image-width",
  349. "border-image-width",
  350. "-webkit-border-image-outset",
  351. "-moz-border-image-outset",
  352. "-o-border-image-outset",
  353. "border-image-outset",
  354. "-webkit-border-image-repeat",
  355. "-moz-border-image-repeat",
  356. "-o-border-image-repeat",
  357. "border-image-repeat",
  358. "outline",
  359. "outline-width",
  360. "outline-style",
  361. "outline-color",
  362. "outline-offset",
  363. "background",
  364. "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader",
  365. "background-color",
  366. "background-image",
  367. "background-repeat",
  368. "background-attachment",
  369. "background-position",
  370. "background-position-x",
  371. "-ms-background-position-x",
  372. "background-position-y",
  373. "-ms-background-position-y",
  374. "-webkit-background-clip",
  375. "-moz-background-clip",
  376. "background-clip",
  377. "background-origin",
  378. "-webkit-background-size",
  379. "-moz-background-size",
  380. "-o-background-size",
  381. "background-size",
  382. "box-decoration-break",
  383. "-webkit-box-shadow",
  384. "-moz-box-shadow",
  385. "box-shadow",
  386. "filter:progid:DXImageTransform.Microsoft.gradient",
  387. "-ms-filter:\\'progid:DXImageTransform.Microsoft.gradient",
  388. "text-shadow",
  389. "$font-face",
  390. "font",
  391. "font-family",
  392. "src",
  393. "$font-feature-values",
  394. "$swash",
  395. "$annotation",
  396. "$ornaments",
  397. "$stylistic",
  398. "$styleset",
  399. "$character-variant",
  400. "font-variant-alternates",
  401. "font-size",
  402. "font-weight",
  403. "font-style",
  404. "font-variant",
  405. "font-size-adjust",
  406. "font-stretch",
  407. "font-effect",
  408. "font-emphasize",
  409. "font-emphasize-position",
  410. "font-emphasize-style",
  411. "font-smooth",
  412. "line-height"
  413. ],
  414. "plugin/no-browser-hacks": [true, {
  415. "browsers": [
  416. "ie >= 9",
  417. "edge >= 13",
  418. "firefox >= 5",
  419. "opera >= 12",
  420. "safari >= 5",
  421. "chrome >= 56"
  422. ]
  423. }],
  424. "property-no-unknown": null,
  425. "rule-empty-line-before": null,
  426. "selector-pseudo-element-colon-notation": null,
  427. "shorthand-property-no-redundant-values": null,
  428. "string-quotes": "double",
  429. "unit-whitelist": ["deg", "em", "ex", "ms", "rem", "%", "s", "px", "vw", "vh"]
  430. },
  431. "ignoreFiles": [
  432. "assets/vendor/**/*.css",
  433. "tests/Drupal/Tests/Core/Asset/css_test_files/**/*.css",
  434. "modules/media/css/plugins/drupalmedia/ckeditor.drupalmedia.css"
  435. ]
  436. }