Skip to content

Prettier infinitely suggests additional " ;" to the end of less detached rulesets #11483

@noahsal

Description

@noahsal

Prettier 2.3.2
Playground link

--parser less

Input:

@variable: {
  field: something;
};

Output:

@variable: {
  field: something;
}; ;

(If you test it out in the playground, another space + semicolon are always added, no matter how many are in the "input")

Expected behavior:
I would expect prettier to be satisfied with zero or one semicolon, not always suggest another. See detached rulesets docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    lang: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