Skip to content

Idempotent issue for SCSS map #14088

@sosukesuzuki

Description

@sosukesuzuki

Prettier 2.8.1
Playground link

--parser scss

Input:

$display-breakpoints: map-deep-merge(
  (
    "xs-only": "only screen and (max-width: #{map-get($grid-breakpoints, "sm")-1})",
  ),
  $display-breakpoints
);

Output:

$display-breakpoints: map-deep-merge(
  (
    "xs-only": "only screen and (max-width: #{map-get($grid-breakpoints, "sm")-1})"
  ),
  $display-breakpoints
);

Second Output:

$display-breakpoints: map-deep-merge(
  (
    "xs-only": "only screen and (max-width: #{map-get($grid-breakpoints, " sm
      ")-1})",
  ),
  $display-breakpoints
);

Expected behavior:

same as input

Related:

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:idempotencyIssues with re-printing Prettier’s outputlang:css/scss/lessIssues affecting CSS, Less or SCSSlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions