svelte-intellij
svelte-intellij copied to clipboard
Auto Imports for TypeScript Components do not respect IDE Code Style Setting: Use paths relative to tsconfig.json
For components thats use lang="ts", auto imports of other (nested) components do not respect IDE Setting: Settings/Editor/Code Style/TypeScript : Use paths relative to tsconfig.json [unchecked]
And to get relative path for components thats use typescript, additionally to unchecked setting above, we need to uncheck similar for JavaScript: Settings/Editor/Code Style/JavaScript : Use paths relative to the project, resource or source roots
When both unchecked, auto import of .svelte components uses relative paths and works as expected
Hello, can you provide sample reproduction and version of IDE and plugin used? This should work in newest versions
Migrated to WEB-54246 Svelte plugin imports using .js extension on TypeScript blocks