Skip to content
This repository has been archived by the owner on Apr 13, 2021. It is now read-only.

Commit

Permalink
chore: update Husky configuration for V5
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlafroscia committed Mar 18, 2021
1 parent f22845b commit 48ebe8d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged
8 changes: 2 additions & 6 deletions package.json
Expand Up @@ -11,7 +11,8 @@
"lint": "npm-run-all lint:**",
"lint:js": "eslint .",
"lint:other": "prettier --check '**/*.{json,md,yml}'",
"test": "yarn workspaces run test"
"test": "yarn workspaces run test",
"prepare": "husky install"
},
"devDependencies": {
"eslint": "^7.13.0",
Expand All @@ -27,11 +28,6 @@
"node": "12.19.1",
"yarn": "1.22.10"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": "eslint --fix",
"*.{json,md,yml}": "prettier --write"
Expand Down

0 comments on commit 48ebe8d

Please sign in to comment.