Is there an action to run convert require to import in vscode?

Viewed 745

There is a quick fix action that converts require to import:

enter image description here

I would like to run it automatically on save from editor.codeActionsOnSave, or maybe there's an ESLint rule that has an auto fix?

P.S. I do not want to use vscode extensions for this.

0 Answers
Related