prettier / prettier/prettier

Strings inside template expressions are not formatted like the parent string

Open
#2,300 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

area:multiparser lang:css/scss/less lang:javascript
Dominant language
JavaScript
Stars
52.3k
Forks
5k
Avg merge
19h 2m
Merged PRs (30d)
117

Description

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked Twitter report and screenshot, then reproduce the template-expression case described by the title. Trace how the formatter handles strings inside template expressions compared with the surrounding string. Done means the nested strings receive the same formatting as the parent string and the reported case is covered by verification.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.