Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 1172384
Show file tree
Hide file tree
Showing 2 changed files with 281 additions and 6 deletions.
16 changes: 15 additions & 1 deletion package.json
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 1172384

Please sign in to comment.