-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
821 additions
and
76 deletions.
There are no files selected for viewing
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,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx --no -- commitlint --edit "${1}" |
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,17 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
echo '🏗️👷 Styling your project before committing👷♂️🏗️' | ||
echo 'please be patient, this may take a while...' | ||
|
||
# Check ESLint Standards | ||
pnpm lint || | ||
( | ||
echo '🔨❌ Yoo, you have a problem in your code. Check linter 🔨❌ | ||
Run pnpm lint, add changes and try commit again.'; | ||
false; | ||
) | ||
|
||
echo '🎉 No error found: committing this now.... ✨🚀🏄♂️🍻' | ||
|
||
pnpm lint-staged --concurrent false |
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
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
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,7 @@ | ||
// More info — https://rizkicitra.dev/blog/how-to-setup-husky-nextjs | ||
module.exports = { | ||
'**/*.{js,jsx,ts,tsx}': ['eslint --fix', 'eslint', 'prettier --config ./.prettierrc.js --write'], | ||
'**/*.ts?(x)': () => 'pnpm run check-types', | ||
'*.json': ['prettier --config ./.prettierrc.js --write'], | ||
'**/*.{css,scss,md,html,json}': ['prettier --config ./.prettierrc.js --write'], | ||
} |
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 |
---|---|---|
|
@@ -3,18 +3,36 @@ | |
"version": "1.0.0", | ||
"author": "[email protected]", | ||
"license": "MIT", | ||
"homepage": "https://wayof.dev", | ||
"workspaces": [ | ||
"apps/*", | ||
"packages/*" | ||
], | ||
"keywords": [ | ||
"template", | ||
"boilerplate", | ||
"nextjs", | ||
"vercel", | ||
"turbo", | ||
"turbopack", | ||
"wayofdev", | ||
"monorepo", | ||
"turborepo" | ||
], | ||
"scripts": { | ||
"build": "turbo run build", | ||
"dev": "turbo run dev --parallel", | ||
"lint": "turbo run lint", | ||
"format": "prettier --write \"**/*.{ts,tsx,md}\"" | ||
"lint": "pnpm lint:secrets", | ||
"format": "prettier --write \"**/*.{ts,tsx,md}\"", | ||
"prepare": "husky install" | ||
}, | ||
"dependencies": { | ||
"eslint": "^8.29.0" | ||
}, | ||
"devDependencies": { | ||
"eslint-config-custom": "workspace:*", | ||
"husky": "^8.0.2", | ||
"lint-staged": "^13.1.0", | ||
"prettier": "latest", | ||
"turbo": "latest" | ||
}, | ||
|
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
Oops, something went wrong.