diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6562667..54e432c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,11 +3,10 @@ repos: hooks: - id: eslint name: eslint - entry: go run cmd/mage/main.go frontend:lint + entry: scripts/lint.sh language: system files: \.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx types: [file] - pass_filenames: false - hooks: - id: check-yaml - id: end-of-file-fixer diff --git a/scripts/lint.sh b/scripts/lint.sh new file mode 100755 index 0000000..e22d3f1 --- /dev/null +++ b/scripts/lint.sh @@ -0,0 +1,2 @@ +#!/bin/bash +yarn --cwd frontend eslint $(echo $1 | sed 's/frontend\///g')