Skip to content

v0.2.0

Compare
Choose a tag to compare
@github-actions github-actions released this 24 Mar 15:10
· 17 commits to main since this release
v0.2.0
4afd4e4

Features

  • Added declarationOrder option for sorting declarations (a.k.a. properties) in qualified rule. For example, given with the following input:
div {
  height: 0;
  width: 0;
  display: flex;
}

It can format into:

div {
  display: flex;
  width: 0;
  height: 0;
}

For detail, please refer to documentation.

  • Added singleLineBlockThreshold option. This option can let you put a block into a single line if possible. This is especially useful for increasing readability when writing atomic CSS. For example:
.border-0 { border-width: 0px; }
.border-1 { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-3 { border-width: 3px; }
.border-4 { border-width: 4px; }
.border-5 { border-width: 5px; }

For detail, please refer to documentation.