Skip to content

Commit 81310fc

Browse files
committed
chore: pin eslint-plugin-diff to workaround git ref issue
1 parent 0a57d78 commit 81310fc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ repos:
8181
- "@eslint/js"
8282
- typescript-eslint
8383
- eslint-plugin-jsdoc@^v50.4.3
84-
- eslint-plugin-diff@^2.0.3
84+
# Since 2.1.1, there is a breaking change that requires to fetch the PR base ref ("use fetched origin ref for guessed branch", https://github.com/paleite/eslint-plugin-diff/commit/e1fd847240c51a39099fffd2e4f297b23bad95c1), instead of using the branching ref as pre-commit allows (HEAD^1). We stick to this version to circumvent unnecessary deep repo fetch.
85+
- eslint-plugin-diff@2.1.0
8586
exclude: ^res/translations/.*\.ts$
8687
- repo: local
8788
hooks:

0 commit comments

Comments
 (0)