Skip to content

Commit

Permalink
add lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgoli committed Jun 9, 2022
1 parent d352fb3 commit a40e6aa
Show file tree
Hide file tree
Showing 3 changed files with 276 additions and 9 deletions.
3 changes: 1 addition & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn lint
yarn format
yarn lint-staged
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@
],
"all": true
},
"lint-staged": {
"*.ts": [
"yarn lint",
"yarn format"
]
},
"devDependencies": {
"@types/assert": "^1.4.3",
"@types/chai": "^4.2.7",
Expand All @@ -59,6 +65,7 @@
"eslint-plugin-jsdoc": "^39.3.2",
"eslint-plugin-prettier": "^4.0.0",
"husky": "^8.0.1",
"lint-staged": "^13.0.1",
"mocha": "^10.0.0",
"mockdate": "^3.0.5",
"nyc": "^15.1.0",
Expand Down
Loading

0 comments on commit a40e6aa

Please sign in to comment.