Skip to content

Fix formatting for tagged template decorators #11717

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 25, 2021

Conversation

sosukesuzuki
Copy link
Member

@sosukesuzuki sosukesuzuki commented Oct 25, 2021

Description

Fixes #11716

babel-ts cannot parse

class Foo {
  @foo`bar`
  test: string = "test";
}

Checklist

  • I’ve added tests to confirm my change works.
  • (If the change is user-facing) I’ve added my changes to changelog_unreleased/*/XXXX.md file following changelog_unreleased/TEMPLATE.md.
  • I’ve read the contributing guidelines.

Try the playground for this PR

Sorry, something went wrong.

@sosukesuzuki sosukesuzuki merged commit 6f602d1 into prettier:main Oct 25, 2021
@sosukesuzuki sosukesuzuki deleted the fix-11716 branch October 25, 2021 12:23
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Typescript Issue: Template string based decorators are wrapped with parentheses
2 participants