Skip to content

Commit

Permalink
Add husky
Browse files Browse the repository at this point in the history
  • Loading branch information
timkelty committed Apr 19, 2022
1 parent 2c24aed commit 604416c
Show file tree
Hide file tree
Showing 5 changed files with 716 additions and 1 deletion.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
7 changes: 7 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

# Add to path for GUIs (Tower, etc.)
PATH="/usr/local/bin:$PATH"

npx lint-staged
7 changes: 7 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"**/*.php": [
"./vendor/bin/ecs check --ansi --fix",
"./vendor/bin/phpstan analyse"
],
"*": "prettier --ignore-unknown --write"
}
Loading

0 comments on commit 604416c

Please sign in to comment.