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 e4481a9 commit 44fa96fCopy full SHA for 44fa96f
package.json
@@ -9,7 +9,14 @@
9
"build:prod": "cross-env NODE_ENV=production env_config=prod node build/build.js",
10
"build:sit": "cross-env NODE_ENV=production env_config=sit node build/build.js",
11
"lint": "eslint --ext .js,.vue src",
12
- "test": "npm run lint"
+ "test": "npm run lint",
13
+ "precommit": "lint-staged"
14
+ },
15
+ "lint-staged": {
16
+ "src/**/*.{js,vue}": [
17
+ "eslint --fix",
18
+ "git add"
19
+ ]
20
},
21
"keywords": [
22
"vue",
@@ -81,6 +88,8 @@
81
88
"file-loader": "1.1.5",
82
89
"friendly-errors-webpack-plugin": "1.6.1",
83
90
"html-webpack-plugin": "2.30.1",
91
+ "husky": "0.14.3",
92
+ "lint-staged": "7.2.0",
84
93
"node-notifier": "5.1.2",
85
94
"node-sass": "^4.7.2",
86
95
"optimize-css-assets-webpack-plugin": "3.2.0",
0 commit comments