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
awexis
awexis2y ago
There's a vscode setting that add it's on save might be eslint or prettier
code_sanchu
code_sanchuOP2y ago
Thanks. I used the following vscode setting to apply all eslint rules on save: "editor.codeActionsOnSave": { "source.fixAll.eslint": true }
Want results from more Discord servers?
Add your server