I have a script in my React JS project that allows to reorder imports in three specific categories:
- Imports from dependencies libraries
- Imports from internal components
- Imports from styles files
All works well, using the command npm run order-imports
Now, I'm interested to run this script directly in VS Code, for example when I'm writing code, I want to do Crt+S and run this script to reorder my imports.
Thanks in advance for your advice.