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.
2 parents 5c400a7 + 4ef98e6 commit c8559a8Copy full SHA for c8559a8
package.json
@@ -46,6 +46,7 @@
46
"eslint-plugin-node": "^11.1.0",
47
"eslint-plugin-promise": "^5.1.0",
48
"eslint-plugin-vue": "^7.11.1",
49
+ "lint-staged": "^11.0.0",
50
"vue-template-compiler": "^2.6.14"
51
},
52
"eslintConfig": {
@@ -82,5 +83,18 @@
82
83
"> 1%",
84
"last 2 versions",
85
"not ie <= 8"
- ]
86
+ ],
87
+ "gitHooks": {
88
+ "pre-commit": "lint-staged"
89
+ },
90
+ "lint-staged": {
91
+ "*.js": [
92
+ "vue-cli-service lint",
93
+ "git add"
94
95
+ "*.vue": [
96
97
98
+ ]
99
+ }
100
}
0 commit comments