1.0.2 • Published 2 years ago
precommit-prettier-write v1.0.2
ppw
Execute ppw
to select files whose type is modified, and divide the code of prettier and change into two submissions, reducing the workload of code reviewers.
Installation
npm i -g precommit-prettier-write
Description
- After the modification of the code is completed, execute
ppw
git status
The list viewed by git status, they are the modified files that have completed prettier write, only support the suffixes of.ts
,.js
,.tsx
.git commit
code in stage.git stash pop
may have conflicts at this time. After resolving the conflicts, you can submit. This modification is only a modification of non-code formatting.