Skip to content

Commit 1eed80d

Browse files
authored
Merge pull request #196 from a-kriya/autoLint
Auto-lint on commit
2 parents 980422c + 62a293a commit 1eed80d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

package.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
"eslint-plugin-promise": "^4.2.1",
3939
"eslint-plugin-standard": "^4.0.1",
4040
"eslint-plugin-vue": "^6.2.2",
41-
"lint-staged": "^10.1.1",
41+
"husky": "^4.3.0",
42+
"lint-staged": "^10.4.2",
4243
"node-forge": "^0.10.0",
4344
"node-sass": "^4.13.1",
4445
"prettier": "^2.0.2",
@@ -53,5 +54,13 @@
5354
],
5455
"bugs": {
5556
"url": "https://github.com/mattmezza/vue-beautiful-chat/issues"
57+
},
58+
"husky": {
59+
"hooks": {
60+
"pre-commit": "lint-staged"
61+
}
62+
},
63+
"lint-staged": {
64+
"*.{js,vue}": "vue-cli-service lint"
5665
}
5766
}

0 commit comments

Comments
 (0)