prettier-plugin-ember-template-tag icon indicating copy to clipboard operation
prettier-plugin-ember-template-tag copied to clipboard

[Bug] Special characters + `satisfies` keyword breaks plugin

Open charlesfries opened this issue 7 months ago • 2 comments

🐞 Describe the Bug

Using special characters or Emojis while also using the satisfies keyword breaks the plugin.

🔬 Minimal Reproduction

npx ember-cli@latest new test-app --strict --typescript --embroider

{{! app/templates/application.gts }}

<template>
  …
</template> satisfies unknown;

😕 Actual Behavior

npm run lint:format

app/templates/application.gts
[error] app/templates/application.gts: SyntaxError: Missing semicolon. (3:29)
[error]   1 | <template>
[error]   2 |   …
[error] > 3 | </template> satisfies unknown;
[error]     |                             ^
[error]   4 |
Error occurred when checking code style in the above file.

🌍 Environment

  • prettier-plugin-ember-template-tag version: 2.0.6
  • ember-template-imports version (if applicable): 4.3.0
  • content-tag version (if applicable): 2.0.3
  • eslint-plugin-ember version (if applicable): 12.5.0

➕ Additional Context

https://discord.com/channels/480462759797063690/518154533143183377/1389738528380026931

charlesfries avatar Jul 01 '25 23:07 charlesfries

hm, can you provide a reproduction repo for this?

I made a test here: https://github.com/ember-tooling/prettier-plugin-ember-template-tag/pull/375/files#diff-ea45d03f6db0342a562631b038a65704332271af072c8ac7aab47617ba676083R591

and it seems to work ok?

NullVoxPopuli avatar Jul 02 '25 02:07 NullVoxPopuli

Reproduction: https://github.com/charlesfries/test-app-prettier-character/actions/runs/16015386682/job/45180889131

charlesfries avatar Jul 02 '25 03:07 charlesfries