#20076·prettier

prettier fails to parse now required less format for at rule variables

Author: lukpsaxoCreated Sep 16, 2026Updated Sep 16, 2026
Labelshelp wantedscope:externallang:less

Prettier 3.9.6 Playground link

Input:

@media @{a} {
    .a {
      color: red;
    }
}

Unexpected Error:

SyntaxError: CssSyntaxError: Unknown word breakpoint-regular (13:18)

Why?

using @a less now prints a deprecation error:

DEPRECATED WARNING: A bare @variable in an at-rule prelude is deprecated. Use @{variable} interpolation instead.

using @{a} prettier gives a error.