organize-imports-cli

0.10.0 • Public • Published

organize-imports-cli

VS Code's 'Organize imports' executable from command line

Plays nicely with Prettier and lint-staged:

"lint-staged": {
  "*.ts": [
    "organize-imports-cli",
    "prettier --write"
  ]
}

Usage

> organize-imports-cli [--list-different] files...

Files can be specific ts and js files or tsconfig[.*].json, in which case the whole project is processed.

Files containing the substring // organize-imports-ignore are skipped.

The --list-different flag prints a list of files with unorganized imports. No files are modified.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.10.0
    24,088
    • latest

Version History

Package Sidebar

Install

npm i organize-imports-cli

Weekly Downloads

58,384

Version

0.10.0

License

MIT

Unpacked Size

7.19 kB

Total Files

3

Last publish

Collaborators

  • thorn0