Skip to content

[Bug] Special characters + satisfies keyword breaks pluginΒ #374

@charlesfries

Description

@charlesfries

🐞 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

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