Skip to content

Commit

Permalink
fix: Fix pre-commit hooks + run prettier (#1120)
Browse files Browse the repository at this point in the history
Fix pre-commit hooks
  • Loading branch information
NiedziolkaMichal authored Feb 24, 2023
1 parent 36734e3 commit b11f5bf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

node node_modules/.bin/lint-staged
npx lint-staged
2 changes: 1 addition & 1 deletion .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"*": "prettier --ignore-unknown --write",
"*.{js,jsx,tsx}": "eslint --fix"
"*.{js,jsx,ts,tsx}": ["eslint --fix", "prettier --write"]
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@
"test": "npm run format && npm run lint && npm run jest",
"jest": "JEST_PUPPETEER_CONFIG=jest-puppeteer.config.cjs NODE_OPTIONS=--experimental-vm-modules jest",
"perf": "bundlesize",
"webpack": "webpack"
"webpack": "webpack",
"prepare": "husky install"
},
"jest": {
"preset": "jest-puppeteer"
Expand Down

0 comments on commit b11f5bf

Please sign in to comment.