We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Your Environment
Describe the bug
Sorting imports is breaking on types in .svelte files
To Reproduce
lang="ts"
Expected behavior
Sorting works in Svelte files with lang="ts"
Screenshots, code sample, etc
This one breaks
<script lang="ts"> export let name: string </script>
And this one works
<script lang="ts"> export let name </script>
Configuration File (cat .prettierrc, prettier.config.js, .prettier.js)
{ "useTabs": false, "tabWidth": 2, "singleQuote": true, "trailingComma": "es5", "bracketSameLine": true, "semi": false, "printWidth": 80, "arrowParens": "always", "plugins": ["prettier-plugin-svelte", "@trivago/prettier-plugin-sort-imports"], "importOrder": [ "^@smkit/*", "^~icons", "^(\\$app)|(\\$env)|(\\$lib)|(\\$ui)", "^\\$", "^[./]" ], "importOrderParserPlugins": ["typescript", "decorators-legacy"], "importOrderSeparation": true, "importOrderSortSpecifiers": true }
Error log
Contribute to @trivago/prettier-plugin-sort-imports
The text was updated successfully, but these errors were encountered:
Seems to be lack of preprocess step
prettier-plugin-sort-imports/src/preprocessors/svelte-preprocessor.ts
Line 8 in 875470a
Sorry, something went wrong.
No branches or pull requests
Your Environment
Describe the bug
Sorting imports is breaking on types in .svelte files
To Reproduce
lang="ts"
Expected behavior
Sorting works in Svelte files with
lang="ts"
Screenshots, code sample, etc
This one breaks
And this one works
Configuration File (cat .prettierrc, prettier.config.js, .prettier.js)
Error log
Contribute to @trivago/prettier-plugin-sort-imports
The text was updated successfully, but these errors were encountered: