Skip to content

Formatting of tagged CSS templates with expression fails #29337

@marvinhagemeister

Description

@marvinhagemeister
function css(_: TemplateStringsArray, ..._2: string[]): string {
  return "";
}

css`${""}`;

Output:

deno fmt --check foo.ts
Error checking: /project/foo.ts
  Error formatting tagged template literal at line 4: syntax error at line 3, col 1: expect token `:`, but found `}`
error: Found 1 not formatted file in 1 file

Version: Deno 2.3.3

Metadata

Metadata

Assignees

Labels

deno fmtRelated to the "deno fmt" subcommand or dprint

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions