Skip to content

Commit

Permalink
feat: changed pre commit to use husky and lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
HenriqueSFernandes committed Dec 26, 2024
1 parent 0bc7c6b commit 542fbce
Show file tree
Hide file tree
Showing 4 changed files with 118 additions and 63 deletions.
62 changes: 0 additions & 62 deletions pre-commit-hook.sh

This file was deleted.

2 changes: 2 additions & 0 deletions website/.husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cd website
npx lint-staged
8 changes: 7 additions & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"test": "node ace test",
"lint": "eslint . --fix",
"format": "prettier --write .",
"typecheck": "tsc --noEmit"
"typecheck": "tsc --noEmit",
"prepare": "cd .. && husky website/.husky"
},
"imports": {
"#controllers/*": "./app/controllers/*.js",
Expand Down Expand Up @@ -54,6 +55,8 @@
"eslint-plugin-react": "^7.37.3",
"eslint-plugin-react-hooks": "^5.1.0",
"hot-hook": "^0.4.0",
"husky": "^9.1.7",
"lint-staged": "^15.2.11",
"openapi-types": "^12.1.3",
"pino-pretty": "^13.0.0",
"prettier": "^3.4.2",
Expand Down Expand Up @@ -151,5 +154,8 @@
"packageManager": "[email protected]+sha512.cce0f9de9c5a7c95bef944169cc5dfe8741abfb145078c0d508b868056848a87c81e626246cb60967cbd7fd29a6c062ef73ff840d96b3c86c40ac92cf4a813ee",
"eslintConfig": {
"extends": "@adonisjs/eslint-config/app"
},
"lint-staged": {
"*": "pnpm run lint"
}
}
109 changes: 109 additions & 0 deletions website/pnpm-lock.yaml

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

0 comments on commit 542fbce

Please sign in to comment.