-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: changed pre commit to use husky and lint-staged
- Loading branch information
1 parent
0bc7c6b
commit 542fbce
Showing
4 changed files
with
118 additions
and
63 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
cd website | ||
npx lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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", | ||
|
@@ -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", | ||
|
@@ -151,5 +154,8 @@ | |
"packageManager": "[email protected]+sha512.cce0f9de9c5a7c95bef944169cc5dfe8741abfb145078c0d508b868056848a87c81e626246cb60967cbd7fd29a6c062ef73ff840d96b3c86c40ac92cf4a813ee", | ||
"eslintConfig": { | ||
"extends": "@adonisjs/eslint-config/app" | ||
}, | ||
"lint-staged": { | ||
"*": "pnpm run lint" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.