Don't lint on git push
We run `npm run lint` every time we do a `git push`. This takes quite a long time, and the lint command has already been run when we created the commit in the first place. Could we instead skip this and rely on CI to tell us if we've failed to address a linting issue?
This commit is contained in:
@@ -1483,7 +1483,7 @@
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "npm run format-staged",
|
||||
"pre-push": "npm run lint && scripts/forbid-test-only"
|
||||
"pre-push": "scripts/forbid-test-only"
|
||||
}
|
||||
},
|
||||
"lint-staged": {
|
||||
|
||||
Reference in New Issue
Block a user