Skip to content

Refactor to use TaggedTemplateExpression #411

@fisker

Description

@fisker

Benfits:

  • Won't trigger ASI (array expression or object/function/class expression may need parens some time, will need insert leading semicolon )
  • Won't turn into a statement (object can parsed as a BlockStatement)
  • Won't add parens around (object need parens when it's member expression head)
  • suitable for other needs

prettier/prettier#18350 (comment)

If you want, I can help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions