We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 390b2af commit ae27266Copy full SHA for ae27266
package.json
@@ -50,8 +50,10 @@
50
"eslint-plugin-promise": "^4.2.1",
51
"eslint-plugin-standard": "^4.0.0",
52
"eslint-plugin-vue": "^6.2.2",
53
+ "husky": "^4.3.8",
54
"less": "^3.0.4",
55
"less-loader": "^5.0.0",
56
+ "lint-staged": "^10.5.3",
57
"vue-template-compiler": "^2.6.11"
58
},
59
"eslintConfig": {
@@ -86,5 +88,16 @@
86
88
],
87
89
"jest": {
90
"preset": "@vue/cli-plugin-unit-jest"
91
+ },
92
+ "lint-staged": {
93
+ "src/**/*.{js,vue}": [
94
+ "eslint --fix",
95
+ "git add"
96
+ ]
97
98
+ "husky": {
99
+ "hooks": {
100
+ "pre-commit": "lint-staged"
101
+ }
102
}
103
0 commit comments