|
| 1 | +{ |
| 2 | + "extends": "stylelint-config-gds/scss", |
| 3 | + "plugins": ["stylelint-order"], |
| 4 | + "rules": { |
| 5 | + "order/properties-order": [ |
| 6 | + [ |
| 7 | + { |
| 8 | + "emptyLineBefore": "threshold", |
| 9 | + "properties": ["content", "content-visibility", "quotes"] |
| 10 | + }, |
| 11 | + { |
| 12 | + "emptyLineBefore": "threshold", |
| 13 | + "properties": ["box-sizing", "display", "visibility"] |
| 14 | + }, |
| 15 | + { |
| 16 | + "emptyLineBefore": "threshold", |
| 17 | + "properties": ["position", "z-index", "top", "right", "bottom", "left"] |
| 18 | + }, |
| 19 | + { |
| 20 | + "emptyLineBefore": "threshold", |
| 21 | + "properties": [ |
| 22 | + "flex", |
| 23 | + "flex-basis", |
| 24 | + "flex-direction", |
| 25 | + "flex-flow", |
| 26 | + "flex-grow", |
| 27 | + "flex-shrink", |
| 28 | + "flex-wrap", |
| 29 | + "align-content", |
| 30 | + "align-items", |
| 31 | + "align-self", |
| 32 | + "justify-content", |
| 33 | + "order", |
| 34 | + |
| 35 | + "grid", |
| 36 | + "grid-area", |
| 37 | + "grid-auto-columns", |
| 38 | + "grid-auto-flow", |
| 39 | + "grid-auto-rows", |
| 40 | + "grid-column", |
| 41 | + "grid-column-end", |
| 42 | + "grid-column-start", |
| 43 | + "grid-row", |
| 44 | + "grid-row-end", |
| 45 | + "grid-row-start", |
| 46 | + "grid-template", |
| 47 | + "grid-template-areas", |
| 48 | + "grid-template-columns", |
| 49 | + "grid-template-rows", |
| 50 | + |
| 51 | + "columns", |
| 52 | + "column-count", |
| 53 | + "column-fill", |
| 54 | + "column-gap", |
| 55 | + "column-rule", |
| 56 | + "column-rule-color", |
| 57 | + "column-rule-style", |
| 58 | + "column-rule-width", |
| 59 | + "column-span", |
| 60 | + "column-width", |
| 61 | + "row-gap" |
| 62 | + ] |
| 63 | + }, |
| 64 | + { |
| 65 | + "emptyLineBefore": "threshold", |
| 66 | + "properties": [ |
| 67 | + "width", |
| 68 | + "min-width", |
| 69 | + "max-width", |
| 70 | + "height", |
| 71 | + "min-height", |
| 72 | + "max-height", |
| 73 | + |
| 74 | + "margin", |
| 75 | + "margin-top", |
| 76 | + "margin-right", |
| 77 | + "margin-bottom", |
| 78 | + "margin-left", |
| 79 | + |
| 80 | + "padding", |
| 81 | + "padding-top", |
| 82 | + "padding-right", |
| 83 | + "padding-bottom", |
| 84 | + "padding-left" |
| 85 | + ] |
| 86 | + }, |
| 87 | + { |
| 88 | + "emptyLineBefore": "threshold", |
| 89 | + "properties": ["float", "clear", "overflow", "overflow-x", "overflow-y"] |
| 90 | + }, |
| 91 | + { |
| 92 | + "emptyLineBefore": "threshold", |
| 93 | + "properties": ["clip", "clip-path", "zoom", "resize"] |
| 94 | + }, |
| 95 | + { |
| 96 | + "emptyLineBefore": "threshold", |
| 97 | + "properties": [ |
| 98 | + "table-layout", |
| 99 | + "empty-cells", |
| 100 | + "caption-side", |
| 101 | + "border-spacing", |
| 102 | + "border-collapse" |
| 103 | + ] |
| 104 | + }, |
| 105 | + { |
| 106 | + "emptyLineBefore": "threshold", |
| 107 | + "properties": [ |
| 108 | + "list-style", |
| 109 | + "list-style-position", |
| 110 | + "list-style-type", |
| 111 | + "list-style-image" |
| 112 | + ] |
| 113 | + }, |
| 114 | + { |
| 115 | + "emptyLineBefore": "threshold", |
| 116 | + "properties": ["transform", "transition", "animation"] |
| 117 | + }, |
| 118 | + { |
| 119 | + "emptyLineBefore": "threshold", |
| 120 | + "properties": [ |
| 121 | + "border", |
| 122 | + "border-top", |
| 123 | + "border-right", |
| 124 | + "border-bottom", |
| 125 | + "border-left", |
| 126 | + |
| 127 | + "border-width", |
| 128 | + "border-top-width", |
| 129 | + "border-right-width", |
| 130 | + "border-bottom-width", |
| 131 | + "border-left-width", |
| 132 | + |
| 133 | + "border-style", |
| 134 | + "border-top-style", |
| 135 | + "border-right-style", |
| 136 | + "border-bottom-style", |
| 137 | + "border-left-style", |
| 138 | + |
| 139 | + "border-radius", |
| 140 | + "border-top-left-radius", |
| 141 | + "border-top-right-radius", |
| 142 | + "border-bottom-left-radius", |
| 143 | + "border-bottom-right-radius", |
| 144 | + |
| 145 | + "border-color", |
| 146 | + "border-top-color", |
| 147 | + "border-right-color", |
| 148 | + "border-bottom-color", |
| 149 | + "border-left-color", |
| 150 | + |
| 151 | + "border-image", |
| 152 | + |
| 153 | + "outline", |
| 154 | + "outline-color", |
| 155 | + "outline-offset", |
| 156 | + "outline-style", |
| 157 | + "outline-width" |
| 158 | + ] |
| 159 | + }, |
| 160 | + { |
| 161 | + "emptyLineBefore": "threshold", |
| 162 | + "properties": ["pointer-events", "opacity"] |
| 163 | + }, |
| 164 | + { |
| 165 | + "emptyLineBefore": "threshold", |
| 166 | + "properties": [ |
| 167 | + "color", |
| 168 | + "background", |
| 169 | + "background-color", |
| 170 | + "background-image", |
| 171 | + "background-repeat", |
| 172 | + "background-position", |
| 173 | + "background-size", |
| 174 | + "box-shadow", |
| 175 | + "fill", |
| 176 | + |
| 177 | + "mask", |
| 178 | + "mask-border", |
| 179 | + "mask-border-mode", |
| 180 | + "mask-border-outset", |
| 181 | + "mask-border-repeat", |
| 182 | + "mask-border-slice", |
| 183 | + "mask-border-source", |
| 184 | + "mask-border-width", |
| 185 | + "mask-clip", |
| 186 | + "mask-composite", |
| 187 | + "mask-image", |
| 188 | + "mask-mode", |
| 189 | + "mask-origin", |
| 190 | + "mask-repeat", |
| 191 | + "mask-position", |
| 192 | + "mask-size", |
| 193 | + "mask-type" |
| 194 | + ] |
| 195 | + }, |
| 196 | + { |
| 197 | + "emptyLineBefore": "threshold", |
| 198 | + "properties": [ |
| 199 | + "font", |
| 200 | + "font-family", |
| 201 | + "font-size", |
| 202 | + "font-style", |
| 203 | + "font-variant", |
| 204 | + "font-weight", |
| 205 | + "font-emphasize", |
| 206 | + "font-display", |
| 207 | + "src", |
| 208 | + |
| 209 | + "letter-spacing", |
| 210 | + "line-height", |
| 211 | + "word-spacing", |
| 212 | + |
| 213 | + "text-align", |
| 214 | + "text-align-last", |
| 215 | + "text-decoration", |
| 216 | + "text-decoration-thickness", |
| 217 | + "text-decoration-skip-ink", |
| 218 | + "text-decoration-skip", |
| 219 | + "text-indent", |
| 220 | + "text-justify", |
| 221 | + "text-overflow", |
| 222 | + "text-overflow-ellipsis", |
| 223 | + "text-overflow-mode", |
| 224 | + "text-rendering", |
| 225 | + "text-outline", |
| 226 | + "text-shadow", |
| 227 | + "text-transform", |
| 228 | + "text-wrap", |
| 229 | + "word-wrap", |
| 230 | + "word-break", |
| 231 | + "overflow-wrap", |
| 232 | + |
| 233 | + "text-emphasis", |
| 234 | + |
| 235 | + "vertical-align", |
| 236 | + "white-space", |
| 237 | + "word-spacing", |
| 238 | + "hyphens", |
| 239 | + "user-select", |
| 240 | + "forced-color-adjust" |
| 241 | + ] |
| 242 | + }, |
| 243 | + { |
| 244 | + "emptyLineBefore": "threshold", |
| 245 | + "properties": ["cursor", "-webkit-appearance"] |
| 246 | + } |
| 247 | + ], |
| 248 | + { |
| 249 | + "emptyLineBeforeUnspecified": "threshold", |
| 250 | + "emptyLineMinimumPropertyThreshold": 6 |
| 251 | + } |
| 252 | + ] |
| 253 | + } |
| 254 | +} |
0 commit comments