From 0b9dcb44d9e8858a1aeb9bfbb774b28a8b77e2ee Mon Sep 17 00:00:00 2001 From: Elena Tanasoiu Date: Mon, 6 Feb 2023 17:36:24 +0000 Subject: [PATCH] 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? --- extensions/ql-vscode/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/ql-vscode/package.json b/extensions/ql-vscode/package.json index c113f625f..2ac1f5d0e 100644 --- a/extensions/ql-vscode/package.json +++ b/extensions/ql-vscode/package.json @@ -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": {