@havenmoney/organize-imports-cli

0.4.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",
    "git add"
  ]
}

Usage

> organize-imports-cli 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.

Readme

Keywords

none

Package Sidebar

Install

npm i @havenmoney/organize-imports-cli

Weekly Downloads

3

Version

0.4.0

License

MIT

Unpacked Size

4.77 kB

Total Files

3

Last publish

Collaborators

  • derander
  • wiktorekmichael