Skip to content
This repository has been archived by the owner on Jul 8, 2023. It is now read-only.

Commit

Permalink
Replace lefthook based Git hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
carhartl committed Jun 23, 2023
1 parent ce66c8c commit 0ad6172
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .nano-staged.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default {
'*.{js,mjs,ts}': 'eslint --fix',
'*.{html,js,json,md,mjs,ts,yml}': 'prettier --write'
}
3 changes: 3 additions & 0 deletions .simple-git-hooks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"pre-commit": "npx nano-staged"
}
5 changes: 0 additions & 5 deletions lefthook.yml

This file was deleted.

42 changes: 42 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,12 @@
"fast-check": "^3.0.0",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"nano-staged": "^0.8.0",
"prettier": "^2.3.2",
"release-it": "^15.0.0",
"rollup": "^3.17.2",
"rollup-plugin-license": "^3.0.0",
"simple-git-hooks": "^2.8.1",
"ts-jest": "^29.0.5",
"ts-node": "^10.2.1",
"typescript": "~5.1.3"
Expand Down

0 comments on commit 0ad6172

Please sign in to comment.