amatiasq / vsc-sort-imports

Sort ES6 imports automatically.
ISC License
58 stars 24 forks source link

Run sort-imports over whole project? #31

Open holloway opened 5 years ago

holloway commented 5 years ago

Can I run vsc-sort-imports over the whole project?

amatiasq commented 5 years ago

Not for now, though it would be a nice feature.

jerome-benoit commented 3 years ago

Adding that kind of script entry to a project package.json permits to do it:

"import-sort": "npx import-sort-cli --write 'src/**/*.ts{,x}' 'test/**/*.ts{,x}' 'build/types/**/*.ts{,x}'"