Skip to content

Commit

Permalink
chore(deps): setup lint-staged to format files before commits
Browse files Browse the repository at this point in the history
  • Loading branch information
dtfiedler committed Mar 19, 2024
1 parent 582877b commit 8a7e59e
Show file tree
Hide file tree
Showing 3 changed files with 193 additions and 30 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 format:fix
yarn lint
yarn lint-staged
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
"http-server": "^14.1.1",
"husky": "^8.0.3",
"jest": "^29.7.0",
"lint-staged": "^15.2.2",
"prettier": "^3.0.2",
"rimraf": "^5.0.1",
"semantic-release": "^21.0.7",
Expand All @@ -113,8 +114,13 @@
"dependencies": {
"arweave": "^1.14.4",
"axios": "1.4.0",
"setimmediate": "^1.0.5",
"warp-contracts": "^1.4.38",
"winston": "^3.11.0",
"setimmediate": "^1.0.5"
"winston": "^3.11.0"
},
"lint-staged": {
"**/*.{ts,js,mjs,cjs,md,json}": [
"prettier --write ."
]
}
}
Loading

0 comments on commit 8a7e59e

Please sign in to comment.