-
Notifications
You must be signed in to change notification settings - Fork 147
Open
Labels
Description
Your Environment
- Prettier version: 3.5.3
- node version: 22
- package manager: [email protected]
- IDE: CLI
Describe the bug
npx prettier index.ts
index.ts
[error] index.ts: SyntaxError: Unexpected token (97:4)
To Reproduce
- Clone: https://github.com/joshnuss/svelte-persisted-store
- Use this config
export default {
importOrder: ["<THIRD_PARTY_MODULES>", "^[./]"],
importOrderSeparation: true,
plugins: ["@trivago/prettier-plugin-sort-imports"],
};
npx prettier index.ts
- Without the plugin, the file gets formatted.
Expected behavior
- No error
Screenshots, code sample, etc
Configuration File (cat .prettierrc, prettier.config.js, .prettier.js)
export default {
importOrder: ["<THIRD_PARTY_MODULES>", "^[./]"],
importOrderSeparation: true,
plugins: ["@trivago/prettier-plugin-sort-imports"],
};
Error log
Contribute to @trivago/prettier-plugin-sort-imports
- I'm willing to fix this bug 🥇