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
In a lot of files imports are used like this:
import { CommandAction } from '../../model';
When they could be imported like this:
import { CommandAction } from '@app/model';
However, I didn't manage to find a simple solution in 5 minutes. Spend 1 hour trying to find a solution to update the imports on save. Hint: https://stackoverflow.com/questions/72029343/typescript-prefers-importing-relative-import-instead-of-path-alias
Bonus: Add the following, to keep imports organized by IDE in .vscode/settings.json:
.vscode/settings.json
"editor.codeActionsOnSave": { "source.organizeImports": true, },
The text was updated successfully, but these errors were encountered:
AldasKleinas
Successfully merging a pull request may close this issue.
In a lot of files imports are used like this:
When they could be imported like this:
However, I didn't manage to find a simple solution in 5 minutes. Spend 1 hour trying to find a solution to update the imports on save. Hint: https://stackoverflow.com/questions/72029343/typescript-prefers-importing-relative-import-instead-of-path-alias
Bonus: Add the following, to keep imports organized by IDE in
.vscode/settings.json
:The text was updated successfully, but these errors were encountered: