Skip to content

Commit

Permalink
test:check-links:remove .pre-commit-config.yaml conflict with husky, …
Browse files Browse the repository at this point in the history
…fix husky
  • Loading branch information
casperdcl committed Feb 1, 2020
1 parent f3c05aa commit eef515b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
name: check 404 links
command: |
# only diff
scripts/check-links.sh <(git diff origin/master -U0)
scripts/check-links-git-diff.sh
- save_cache:
paths:
Expand Down
10 changes: 0 additions & 10 deletions .pre-commit-config.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
},
"husky": {
"hooks": {
"pre-commit": "yarn format-staged && lint-staged && scripts/check-links.sh <(git diff origin/master -U0)"
"pre-commit": "yarn format-staged && lint-staged && scripts/check-links-git-diff.sh"
}
},
"lint-staged": {
Expand Down
2 changes: 2 additions & 0 deletions scripts/check-links-git-diff.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env bash
$(dirname $0)/check-links.sh <(git diff origin/master -U0)

0 comments on commit eef515b

Please sign in to comment.