Skip to content

Commit

Permalink
Fix pre-commit configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Oct 31, 2020
1 parent 3c51b3e commit 74b31e1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Expand Up @@ -51,12 +51,12 @@ repos:
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
- repo: https://github.com/prettier/prettier
rev: 2.1.2
- repo: https://github.com/prettier/pre-commit
rev: 83c5da9dc412f5a2294d6c67ab349e9d30caca31
hooks:
- id: prettier
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v7.12.0
rev: v7.12.1
hooks:
- id: eslint
args: ["--format=compact"]
Expand Down
6 changes: 6 additions & 0 deletions repo-fixups
@@ -0,0 +1,6 @@
#!/bin/sh

sed -i \
-e 's@https://github.com/prettier/prettier@https://github.com/prettier/pre-commit@' \
-e 's@rev: 2.1.2@rev: v2.1.2@' \
.pre-commit-config.yaml
3 changes: 3 additions & 0 deletions sync.sh
Expand Up @@ -62,6 +62,9 @@ for repo in $REPOS ; do
# Update issue templates
"$ROOT/update-issue-config" "$ROOT"

# Apply fixes
"$ROOT/repo-fixups"

# Add and push
git add .
if ! git diff --cached --exit-code ; then
Expand Down

0 comments on commit 74b31e1

Please sign in to comment.