malva

Configurable, smart and fast CSS, SCSS, Sass and Less formatter with dprint integration.

MIT License

Downloads
482
Stars
71

Bot releases are visible (Hide)

malva - v0.9.1 Latest Release

Published by github-actions[bot] 2 months ago

Fixes

  • Fixed formatting top-level declarations when there're no trailing whitespaces or semicolons.
malva - v0.9.0

Published by github-actions[bot] 2 months ago

Breaking Changes

malva - v0.8.0

Published by github-actions[bot] 2 months ago

Features

  • Improved error message.
  • Added support of Tailwind CSS @media screen() syntax.
  • Added support of formatting style attr in HTML.

Fixes

  • Fixed indent of unknown at-rule prelude.
malva - v0.7.1

Published by github-actions[bot] 3 months ago

Fixes

  • Fixed non-standard @apply at-rule.
malva - v0.7.0

Published by github-actions[bot] 3 months ago

Features

Deprecation

  • padComments was renamed to formatComments, so padComments is deprecated and will be removed in the future.
malva - v0.6.0

Published by github-actions[bot] 3 months ago

Features

  • Added attrValueQuotes option.
  • Optimized comments before selector.
  • Optimized formatting pseudo class selectors.
  • Optimized formatting comments in nodes list.
  • Optimized comments inside complex selector.
  • Optimized comments inside pseudo selector.
  • Optimized formatting function in declaration value.

Fixes

  • Fixed indentation of compound selector.
  • Fixed edge case of preferSingle and preferDouble quotes option.
malva - v0.5.1

Published by github-actions[bot] 4 months ago

Chore

  • Added descriptions to configuration JSON schema.
malva - v0.5.0

Published by github-actions[bot] 4 months ago

Features

  • Added support of inserting heuristic linebreak when formatting lists for some AST nodes. (Close #11)

Fixes

  • Fixed printing semicolons twice in Sass variable declaration. (Fix #10)
malva - v0.4.0

Published by github-actions[bot] 5 months ago

Features

malva - v0.3.1

Published by github-actions[bot] 5 months ago

Fixes

  • Fixed leading combinator in nested qualified rule.
malva - v0.3.0

Published by github-actions[bot] 6 months ago

Features

  • Optimized formatting grid and grid-template-* properties.
malva - v0.2.0

Published by github-actions[bot] 7 months ago

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.

malva - v0.1.5

Published by github-actions[bot] 8 months ago

This release didn't change anything for end users.

malva - v0.1.4

Published by github-actions[bot] 11 months ago

malva - v0.1.3

Published by github-actions[bot] 11 months ago

malva - v0.1.2

Published by github-actions[bot] 12 months ago

Fixes

  • Fixed config key operatorLinebreak in dprint config.
malva - v0.1.1

Published by github-actions[bot] almost 1 year ago

Fixes

  • Fixed dprint plugin config.
  • Fixed formatting Sass arbitrary arguments.
malva - v0.1.0

Published by github-actions[bot] about 1 year ago

Initial release of Malva.

Thanks @magic-akari @NWYLZW @yfzhe (in alphabetical order) for providing early feedback!

Package Rankings
Top 44.1% on Npmjs.org
Related Projects