ts-importer icon indicating copy to clipboard operation
ts-importer copied to clipboard

Insert dependency ordered by dependency name

Open codeandcats opened this issue 7 years ago • 1 comments

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.

codeandcats avatar Oct 17 '17 01:10 codeandcats

Should be a small thing

pmneo avatar Oct 18 '17 08:10 pmneo