How to automatically add type prefix to type imports?
Hi all,
is there a way to automatically add the type prefix for type imports in vscode? Either on auto-import or with prettier/eslint formmating.
I like the rule and don't want to remove it, it's just a bit annoying to have to manually add 'type' on each type import.
2 Replies
There's a vscode setting that add it's on save might be eslint or prettier
Thanks. I used the following vscode setting to apply all eslint rules on save:
"editor.codeActionsOnSave": { "source.fixAll.eslint": true }