g-plane / malva

Configurable, smart and fast CSS, SCSS, Sass and Less formatter with dprint integration.
https://dprint.dev/plugins/malva
MIT License
78 stars 3 forks source link

Double semicolons in SCSS maps. #10

Closed Val-Git closed 5 months ago

Val-Git commented 5 months ago

When running dprint fmt Malva adds additional semicolons in SCSS maps.

I need to keep my maps multi-line and I add an ignore comment to them. But Malva has a side effect: in this case, it adds second semicolons at the end of the maps.

input:

// malva-ignore
$padding: map.get((
  sm: 4px,
  md: 8px,
  lg: 12px
), lg);

// malva-ignore
$size: (
  sm: 16px,
  md: 24px
);

output:

// malva-ignore
$padding: map.get((
  sm: 4px,
  md: 8px,
  lg: 12px
), $size);;

// malva-ignore
$size: (
  sm: 16px,
  md: 24px
);;

By the way, it would be great if Malva allowed specifying multi-line maps, for example through the config.

g-plane commented 5 months ago

Can you open a new issue about multi-line maps? They're different problems.

Val-Git commented 5 months ago

Done #11