Skip to content
Permalink
Browse files
chore: Setup lint-staged with husky(pre-commit) (#914)
  • Loading branch information
sudo-suhas authored and yyx990803 committed Aug 3, 2017
1 parent afdb06b commit 1172384ef3ca379a457ef04283a6dec4c99eac9a
Showing with 281 additions and 6 deletions.
  1. +15 −1 package.json
  2. +266 −5 yarn.lock
@@ -23,11 +23,23 @@
},
"homepage": "https://github.com/vuejs/vue-loader",
"scripts": {
"lint": "eslint lib",
"lint": "eslint lib test",
"lint:fix": "eslint lib test --fix",
"precommit": "lint-staged",
"test": "eslint lib && mocha --slow 5000 --timeout 10000",
"docs": "cd docs && gitbook serve",
"docs:deploy": "bash ./docs/deploy.sh"
},
"lint-staged": {
"lib/**/*.js": [
"eslint --fix",
"git add"
],
"test/**/*.js": [
"eslint --fix",
"git add"
]
},
"dependencies": {
"consolidate": "^0.14.0",
"hash-sum": "^1.0.2",
@@ -60,9 +72,11 @@
"expose-loader": "^0.7.1",
"extract-text-webpack-plugin": "^3.0.0",
"file-loader": "^0.11.2",
"husky": "^0.14.3",
"inject-loader": "^3.0.0",
"js-yaml": "^3.9.0",
"jsdom": "^9.2.1",
"lint-staged": "^4.0.2",
"marked": "^0.3.6",
"memory-fs": "^0.4.1",
"mkdirp": "^0.5.1",
Loading

0 comments on commit 1172384

Please sign in to comment.