Skip to content

Commit 876c71f

Browse files
committed
husky init
1 parent 0f30b09 commit 876c71f

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn lint-staged

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"test:unit": "jest --config jest.config.js",
1111
"start": "nuxt start",
1212
"generate": "nuxt generate",
13-
"lint": "eslint --ext .js,.vue,.ts --ignore-path .eslintignore ."
13+
"lint": "eslint --ext .js,.vue,.ts --ignore-path .eslintignore .",
14+
"prepare": "husky install"
1415
},
1516
"lint-staged": {
1617
"*.{js,ts,css,vue}": [

0 commit comments

Comments
 (0)