fix: husky pre-commit (#2545)

This commit is contained in:
Sidharth Vinod
2021-12-09 00:00:10 +05:30
committed by GitHub
parent 308ab0e465
commit f01bf59114
2 changed files with 4 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
yarn dlx lint-staged
yarn pre-commit

View File

@@ -37,7 +37,8 @@
"test": "yarn lint && jest src/.*",
"test:watch": "jest --watch src",
"prepublishOnly": "yarn build && yarn test",
"prepare": "husky install && yarn build"
"prepare": "husky install && yarn build",
"pre-commit": "lint-staged"
},
"repository": {
"type": "git",
@@ -111,4 +112,4 @@
"**/*.css",
"**/*.scss"
]
}
}