Skip to content

Commit

Permalink
chore(scripts): add organize-imports-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieMason committed Aug 30, 2020
1 parent 6ffd1a1 commit 2d5083a
Show file tree
Hide file tree
Showing 2 changed files with 304 additions and 18 deletions.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"expect-more-jest": "5.2.0",
"jest": "26.4.2",
"mock-fs": "4.13.0",
"organize-imports-cli": "0.7.0",
"prettier": "2.0.5",
"rimraf": "3.0.2",
"ts-jest": "26.2.0",
Expand Down Expand Up @@ -77,7 +78,9 @@
"repository": "JamieMason/syncpack",
"scripts": {
"build": "tsc --project .",
"format": "prettier --write './src/**/*.ts' './test/**/*.ts'",
"format": "npm run format:imports && npm run format:source",
"format:imports": "organize-imports-cli ./src/**/*.ts",
"format:source": "prettier --write ./{src,test}/**/*.ts",
"lint": "eslint --fix --ext .ts,.tsx .",
"prebuild": "rimraf dist ./test/dist",
"prelint": "npm run format",
Expand Down

0 comments on commit 2d5083a

Please sign in to comment.