We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f37068 commit 97196c7Copy full SHA for 97196c7
1 file changed
README.md
@@ -363,6 +363,35 @@ p {
363
}
364
```
365
366
+If you sort properties in `*.scss` or `*.less` files, you can use one of 3
367
+keywords in your config:
368
+ * `$variable` for variable declarations (e.g. `$var` in Sass or `@var` in LESS);
369
+ * `$include` for included mixins (e.g. `@include ...` and `@extend ...` in Sass
370
+ or `.mixin()` in LESS);
371
+ * `$import` for `@import` rules.
372
+
373
+Example: `{ "sort-order": [ [ "$variable" ], [ "$include" ], [ "top", "padding" ] ] }`
374
375
+```scss
376
+/* before */
377
+p {
378
+ padding: 0;
379
+ @include mixin($color);
380
+ $color: tomato;
381
+ top: 0;
382
+}
383
384
+/* after */
385
386
387
388
389
390
391
392
393
+```
394
395
### stick-brace
396
397
Available values:
0 commit comments