znikola / es6-typescript-import-sorter

GNU General Public License v3.0
0 stars 0 forks source link

Import sorter

An opinionated ES6 and TypeScript import sorter.

TODO:

Ts config json

Docs

import { sortImports } from 'import-sorter';
const result = sortImports(...);

After testing, make sure to unlink import-sorter, by navigating to it and yarn unlink

Debugging the CLI

cliSort({
  content: '',
  dryRun: true,
  verbose: true
});

Note - in this way, the configuration binding is being skipped, and it can't be relied on the default value. Thus, all desired configuration value have to be explicitly specified.

Future