@build-script/rush-pretty
v0.0.4
Published
Basically same as document [here](https://rushjs.io/pages/maintainer/enabling_prettier/)
Downloads
8
Readme
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 --install
options:
rush prettier --changed
orrush 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
gitignore
content toprettierignore
. --staged
format files in working tree, which has staged copy. Does not really care the file in the stage. This is also whatpretty-quick
do.- Anything in newly added folder will not format before
git add
. Even with--all
flag.