File tree Expand file tree Collapse file tree 2 files changed +281
-6
lines changed Expand file tree Collapse file tree 2 files changed +281
-6
lines changed Original file line number Diff line number Diff line change 23
23
},
24
24
"homepage" : " https://github.com/vuejs/vue-loader" ,
25
25
"scripts" : {
26
- "lint" : " eslint lib" ,
26
+ "lint" : " eslint lib test" ,
27
+ "lint:fix" : " eslint lib test --fix" ,
28
+ "precommit" : " lint-staged" ,
27
29
"test" : " eslint lib && mocha --slow 5000 --timeout 10000" ,
28
30
"docs" : " cd docs && gitbook serve" ,
29
31
"docs:deploy" : " bash ./docs/deploy.sh"
30
32
},
33
+ "lint-staged" : {
34
+ "lib/**/*.js" : [
35
+ " eslint --fix" ,
36
+ " git add"
37
+ ],
38
+ "test/**/*.js" : [
39
+ " eslint --fix" ,
40
+ " git add"
41
+ ]
42
+ },
31
43
"dependencies" : {
32
44
"consolidate" : " ^0.14.0" ,
33
45
"hash-sum" : " ^1.0.2" ,
60
72
"expose-loader" : " ^0.7.1" ,
61
73
"extract-text-webpack-plugin" : " ^3.0.0" ,
62
74
"file-loader" : " ^0.11.2" ,
75
+ "husky" : " ^0.14.3" ,
63
76
"inject-loader" : " ^3.0.0" ,
64
77
"js-yaml" : " ^3.9.0" ,
65
78
"jsdom" : " ^9.2.1" ,
79
+ "lint-staged" : " ^4.0.2" ,
66
80
"marked" : " ^0.3.6" ,
67
81
"memory-fs" : " ^0.4.1" ,
68
82
"mkdirp" : " ^0.5.1" ,
You can’t perform that action at this time.
0 commit comments