Skip to content

Commit

Permalink
Add lint-staged and pre-commit script
Browse files Browse the repository at this point in the history
Change-type: patch
  • Loading branch information
joshbwlng committed Apr 9, 2024
1 parent 6c28e43 commit 3937c57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx --no lint-staged
6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"@types/node": "^20.0.0",
"chai": "^4.3.7",
"husky": "^9.0.0",
"lint-staged": "^15.2.2",
"mocha": "^10.2.0",
"rimraf": "^5.0.0",
"ts-node": "^10.9.1",
Expand All @@ -40,11 +41,6 @@
"require": "ts-node/register/transpile-only",
"extension": ".ts"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.ts": [
"balena-lint --fix"
Expand Down

0 comments on commit 3937c57

Please sign in to comment.