Skip to content

Less: passing ruleset with comment to mixin call duplicates the closing semicolon of mixin call #3096

@slorber

Description

@slorber

Prettier 1.7.4
Playground link

--parser less
--trailing-comma all

Input:

.myMixin(@someMixinRules: {
  // comment
  z-index: 0;
});

Output:

.myMixin(@someMixinRules: {
  // comment
  z-index: 0;
});;

Expected behavior:

.myMixin(@someMixinRules: {
  // comment
  z-index: 0;
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    lang:css/scss/lessIssues affecting CSS, Less or SCSSlang:lessIssues affecting Less-specific syntax (not plain CSS)locked-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