Skip to content

Commit

Permalink
fix(pre-commit): also pass argument 0 to the lint
Browse files Browse the repository at this point in the history
Signed-off-by: vringar <zabka@campus.tu-berlin.de>
  • Loading branch information
vringar committed Jun 27, 2023
1 parent 65e715d commit 3667d9c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ repos:
- id: eslint
name: eslint
language: system
files: 'Explorer/.*\.(js|jsx|ts|tsx)$'
entry: bash -c 'cd Explorer && npm run precommit-lint "$@"'
types: [file]
files: "^Explorer/"
entry: bash -c 'cd Explorer && npm run precommit-lint "$0" "$@"'
# Pass 1. argument explicitly
# $@ only captures arg 2-n
types_or: [javascript, jsx, ts, tsx, json]
- id: golangci-lint
name: golangci-lint
language: system
Expand Down

0 comments on commit 3667d9c

Please sign in to comment.