0.0.8 • Published 6 months ago
@build-script/rush-pretty v0.0.8
install prettier to rush project
Basically same as document here
But this not using pretty-quick.
It's very like pretty-quick but for rush project only.
usage:
pnpx @build-script/rush-pretty --installoptions:
rush prettier --changedorrush prettier: format changed files.rush prettier --staged: same aspretty-quick.rush prettier --all: format all files in git repo, no matter changed or not.
special note:
- You must use git repo. This script will not work without git.
- gitignore and prettier ignore always merge (but not write to disk), you do not need copy
gitignorecontent toprettierignore. --stagedformat files in working tree, which has staged copy. Does not really care the file in the stage. This is also whatpretty-quickdo.- Anything in newly added folder will not format before
git add. Even with--allflag.