Skip to content

Commit

Permalink
ci(husky): lint-staged (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
chimurai committed Oct 31, 2019
1 parent 36366da commit 4de4e52
Show file tree
Hide file tree
Showing 2 changed files with 790 additions and 7 deletions.
10 changes: 10 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@
"coverage": "jest --coverage --coverageReporters=lcov",
"prepare": "yarn clean && yarn test && yarn build"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"**/*.{js,ts,md}": ["prettier --write", "git add"]
},
"dependencies": {
"bin-version": "^4.0.0",
"chalk": "^2.4.2",
Expand All @@ -47,7 +55,9 @@
"@types/jest": "24.0.20",
"@types/node": "12.11.7",
"@types/yargs": "13.0.3",
"husky": "^3.0.9",
"jest": "24.9.0",
"lint-staged": "^9.4.2",
"prettier": "1.18.2",
"ts-jest": "24.1.0",
"ts-node": "8.4.1",
Expand Down

0 comments on commit 4de4e52

Please sign in to comment.