Following from #295, we can use pre-commit hooks to ensure the linters and test runners all pass during git commit to avoid additional comments by reviewdog during the checks workflow. We should have appropriate npm scripts for formatting, linting, and testing defined in the package.json files, so we can run each of those during pre-commit.
Install pre-commit as a dev-dependency
Update the scripts for apps/site to format with Prettier
Specify format, lint, and test as pre-commit steps
Following from #295, we can use pre-commit hooks to ensure the linters and test runners all pass during
git commit
to avoid additional comments by reviewdog during the checks workflow. We should have appropriate npm scripts for formatting, linting, and testing defined in thepackage.json
files, so we can run each of those during pre-commit.apps/site
to format with Prettierformat
,lint
, andtest
as pre-commit steps