Skip to content

Do not lowercase LESS variable names #2829

@nvie

Description

@nvie

Prettier 1.7.0
Playground link

--parser postcss

Input:

@borderSize: 2px;
@outerSize: 18px;
@innerSize: @outerSize - @borderSize;

.Foo {
  width: @innerSize;
}

Output:

@bordersize: 2px;
@outersize: 18px;
@innersize: @outerSize - @borderSize;

.Foo {
  width: @innerSize;
}

Expected behavior:

LESS variables casing would be unaffected.

Metadata

Metadata

Assignees

No one assigned

    Labels

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