Skip to content

Improve LESS :extend() #19548

Description

@fisker

Prettier v3.9.4
Playground link

--parser less

Input:

.me, .mf {
  &:extend(.mb,.md);
}

Output:

.me,
.mf {
  &:extend(.mb,
  .md);
}

Expected output:

.me,
.mf {
  &:extend(
    .mb,
    .md
  );
}

Why?

Metadata

Metadata

Assignees

No one assigned

    Labels

    lang:lessIssues affecting Less-specific syntax (not plain CSS)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions