Skip to content

Commit 07e7a47

Browse files
committed
chore: Update husky configuration method
1 parent 2b56af8 commit 07e7a47

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@
110110
"scripts": {
111111
"build": "npm run doc",
112112
"release": "standard-version",
113-
"precommit": "lint-staged",
114113
"prepublish": "npm run build",
115114
"format": "prettier --write '{src,__tests__,declarations,bin,default_theme}/**/*.js'",
116115
"doc": "node ./bin/documentation.js build src/index.js -f md --access=public > docs/NODE_API.md",
@@ -145,5 +144,10 @@
145144
"ignore": [
146145
"remote-origin-url"
147146
]
147+
},
148+
"husky": {
149+
"hooks": {
150+
"pre-commit": "lint-staged"
151+
}
148152
}
149153
}

0 commit comments

Comments
 (0)