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:
Elena Tanasoiu
2023-02-06 17:36:24 +00:00
parent 66fd8ad6cc
commit 0b9dcb44d9

View File

@@ -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": {