News for hackers. Stuff that matters.
Re:Speeding up Prettier locally using the new –cache CLI option by bobbylarrybobby on Sunday September 11, 2022 @01:54AM (#32797178)
In between commits, the `--cache` option is still helpful because it means you can avoid running prettier on a file whose contents have changed since the last commit but not since it was last saved.

That said, formatters should be run in pre commit hooks anyway.

Re:Speeding up Prettier locally using the new –cache CLI option by slavik81 on Sunday September 11, 2022 @03:28AM (#32797551)
How do you decide what changes to restage? My experience has been that applying formatting in the pre-commit hook breaks `git add -p`.