diff --git a/.husky/pre-commit b/.husky/pre-commit index a3c12e267..025779ed2 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,4 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" -yarn dlx lint-staged +yarn pre-commit diff --git a/package.json b/package.json index 2e8fd130e..b100c85ff 100644 --- a/package.json +++ b/package.json @@ -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" ] -} +} \ No newline at end of file