You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is a dangerous option, that can silently delete changes made by the developer and will also screw git softwares using changelists, as well as a simple selective commit in git cli.
It can safely be replaced with an integration of prettier in your IDE that would fix cs on save.
With that said I leave it up to you the decision to remove it or not.
The text was updated successfully, but these errors were encountered:
gsouf
changed the title
git add in pre-commit is dangerous
"git add" and "prettier --write" in pre-commit are dangerous
Dec 27, 2021
Hi,
I think you should remove this from package.json
It is a dangerous option, that can silently delete changes made by the developer and will also screw git softwares using changelists, as well as a simple selective commit in git cli.
It can safely be replaced with an integration of prettier in your IDE that would fix cs on save.
With that said I leave it up to you the decision to remove it or not.
The text was updated successfully, but these errors were encountered: