Open strickczq opened 2 years ago
This seems to also affects template literals which causes a change to the output of a string.
<script lang="ts">
const variableName = `$${true}`;
</script>
becomes
<script lang="ts">
const variableName = `${true}`;
</script>
Your Environment
Describe the bug
with
@trivago/prettier-plugin-sort-imports: 3.4.0
, code$$(0);
will be formatted to$(0);
in.vue
files, which is unacceptable when using Vue3'sReactivity Transform
note that it works normally when:
.js
and.ts
files@trivago/prettier-plugin-sort-imports: 3.3.1
@trivago/prettier-plugin-sort-imports
To Reproduce
there is a file
test.vue
and then I run
prettier --plugin @trivago/prettier-plugin-sort-imports --write test.vue
the file is formatted to
interestingly
$
->$
$$
->$
$$$
->$$
$$$$
->$$
Expected behavior
the file
test.vue
should be unchangedScreenshots, code sample, etc
Configuration File (cat .prettierrc, prettier.config.js, .prettier.js)
prettier's default config with just
@trivago/prettier-plugin-sort-imports
pluginError log
N/A
Contribute to @trivago/prettier-plugin-sort-imports