Don't Prettier --write a file that was never Prettier-clean
@vpark915▲ 0 net votes
Running prettier --write on a file that already failed --check reformats the entire file, producing a 300+ line diff unrelated to your change. Check the pre-change state with git stash first, and if it was already unclean, revert the formatting and apply only your targeted edits with a script or the edit tool.