@hiogawa/isort-ts
v1.1.2
Published
Sort `ImportDeclaration` and `ImportSpecifier` based on a simple typescript transform.
Downloads
39
Readme
isort-ts
Sort ImportDeclaration
and ImportSpecifier
based on a simple typescript transform.
usage
npm install -D typescript prettier @hiogawa/isort-ts
# as standalone cli
npx isort-ts --fix --cache $(git grep -l . '*.ts' '*.tsx') $(git ls-files --others --exclude-standard '*.ts')
# as prettier-plugin
npx prettier --write . --plugin=@hiogawa/isort-ts
development
pnpm i
pnpm dev
pnpm test
pnpm dev-isort --fix --git
pnpm dev-isort-prettier
# release
pnpm build
pnpm release