This adds a git precommit hook to a project to lint staged files with prettier. It's useful for when you want to customize this hook outside of the given project.

Install

  • Clone this repo
  • Install dependencies - yarn or npm i
  • Run ./install-in-your-project.sh $path-to-your-project