Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Update pre-commit hook error message (#11792)
* Update lint error message * All lowercase for 'pull request'
- Loading branch information
1 parent
e99d6e8
commit 2fc85d7
Showing
1 changed file
with
10 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
console.log( | ||
`Gatsby uses precommit hooks to run our linting and style checks. We do this | ||
to avoid additional hassle during pull request reviews, so please fix any linting | ||
problems before submitting pull request, because all PRs must pass these checks. | ||
If you're doing something temporary, you can disable this hook with: | ||
git commit --no-verify | ||
If you want disable this hook for all future commits: | ||
npm run hooks:uninstall | ||
` | ||
) | ||
console.log(`Oops! Gatsby noticed some lint or style warnings in the code for this | ||
commit. Your changes have been committed, but you should fix the warnings before | ||
creating a pull request. | ||
Use 'npm run lint' to manually re-run these checks. You can also disable these | ||
checks: | ||
- for a single commit: git commit --no-verify | ||
- for all future commits: npm run hooks:uninstall | ||
`) |