ts-importer
ts-importer copied to clipboard
Insert dependency ordered by dependency name
Currently ts-importer adds new dependencies to an existing import statement as the last item in the statement.
Instead, it would be great if it inserted new dependencies alphabetically amongst the existing dependencies with an import statement.
e.g. When adding dependency a
instead of this:
import { x, y, z, a } from './blah';
It would do this:
import { a, x, y, z } from './blah';
This way one wouldn't have to use the fixer in ts-lint to reorder after each added import.
Should be a small thing