Skip to content

Commit 6d654ab

Browse files
committed
build: add precommit hook
1 parent 2ee6925 commit 6d654ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"ava": "ava __tests__/**/*.test.js",
1616
"snapshot": "npm run ava -- -u",
1717
"lint": "eslint lib --quiet",
18-
"format": "prettier-eslint --list-different --write \"lib/**/*.js\""
18+
"format": "prettier-eslint --list-different --write \"lib/**/*.js\"",
19+
"precommit": "lint-staged"
1920
},
2021
"lint-staged": {
2122
"lib/**/*.js": [

0 commit comments

Comments
 (0)