Skip to content

Commit

Permalink
Migrate husky to v9
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandrHovhannisyan committed May 12, 2024
1 parent 850ce91 commit dec76e8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 64 deletions.
1 change: 1 addition & 0 deletions .husky/post-checkout
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm install
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pnpm exec lint-staged
pnpm test
15 changes: 5 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"lint:js:fix": "eslint --cache --fix \"**/*.js\"",
"test": "node --test",
"test:watch": "npm run test --watch",
"update-browserslist": "npx browserslist@latest --update-db"
"update-browserslist": "npx browserslist@latest --update-db",
"prepare": "husky"
},
"dependencies": {
"@octokit/auth-token": "^4.0.0",
Expand All @@ -51,7 +52,7 @@
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"feather-icons": "^4.28.0",
"husky": "^4.3.0",
"husky": "^9.0.11",
"lint-staged": "^12.1.7",
"lodash": "^4.17.21",
"markdown-it": "^12.0.6",
Expand All @@ -78,15 +79,9 @@
"last 2 firefox versions",
"last 2 edge versions"
],
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"post-checkout": "npm install"
}
},
"lint-staged": {
"*.js": "npm run lint:js:fix",
"*.scss": "npm run lint:css:fix"
"*.js": "pnpm run lint:js:fix",
"*.scss": "pnpm run lint:css:fix"
},
"packageManager": "pnpm@8.15.6+sha256.01c01eeb990e379b31ef19c03e9d06a14afa5250b82e81303f88721c99ff2e6f"
}
59 changes: 5 additions & 54 deletions pnpm-lock.yaml

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

0 comments on commit dec76e8

Please sign in to comment.