Skip to content

Commit

Permalink
maybe better husky
Browse files Browse the repository at this point in the history
  • Loading branch information
vird committed Nov 7, 2023
1 parent 5dda4d3 commit 553641f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@

npm run check:lint && npm run check:types
npm run format:renderer && npm run format:main
npm run check:lint && npm run check:types
npm run format:renderer && npm run format:main
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
"check:lint": "npx eslint .",
"check:types": "npx tsc --noEmit",
"format:renderer": "prettier --write \"renderer/**/*.{js,jsx,ts,tsx,css}\"",
"format:main": "prettier --write \"main/**/*.{js,ts}\"",
"prepare": "husky install && husky add .husky/pre-commit \"npm run check:lint && npm run check:types\" && husky add .husky/pre-commit \"npm run format:renderer && npm run format:main\""
"format:main": "prettier --write \"main/**/*.{js,ts}\""
},
"husky": {
"hooks": {
Expand Down

0 comments on commit 553641f

Please sign in to comment.