Skip to content

Commit

Permalink
chore: Update pre-commit hook error message (#11792)
Browse files Browse the repository at this point in the history
* Update lint error message

* All lowercase for 'pull request'
  • Loading branch information
m-allanson committed Feb 15, 2019
1 parent e99d6e8 commit 2fc85d7
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions scripts/on-lint-error.js
@@ -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
`)

0 comments on commit 2fc85d7

Please sign in to comment.