chore: update lefthook local lint
Description
Currently lefthook pre-push does local linting of commits between main
and HEAD
which creates problems when you don't update your local branch main
. See the screenshot:
That's possible if you are using git fetch
instead of git pull
.
So here I update linting to execute against commits between origin/main
and HEAD
so it works with git pull
as well as git fetch
.
Types of changes
-
Bug fix (non-breaking change which fixes an issue) -
New feature (non-breaking change which adds functionality) -
Breaking change (fix or feature that would cause existing functionality to change) -
Documentation -
Chore (Related to CI or Packaging to platforms) -
Test gap