-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
협업용 husky 설정 및 package.json app alias 설정 #281
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pnpm dlx turbo type-check | ||
pnpm dlx turbo lint-staged |
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -8,13 +8,24 @@ | |||||||||||||||||||||||||
"dev:web": "turbo dev --filter=@gitanimals/web", | ||||||||||||||||||||||||||
"dev:admin": "turbo dev --filter=@gitanimals/admin", | ||||||||||||||||||||||||||
"lint": "turbo lint", | ||||||||||||||||||||||||||
"format": "prettier --write \"**/*.{ts,tsx,md}\"" | ||||||||||||||||||||||||||
"format": "prettier --write \"**/*.{ts,tsx,md}\"", | ||||||||||||||||||||||||||
"web": "pnpm -F @gitanimals/web", | ||||||||||||||||||||||||||
"admin": "pnpm -F @gitanimals/admin", | ||||||||||||||||||||||||||
Comment on lines
+12
to
+13
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 이 부분은 이미 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 말씀하신 추가로 |
||||||||||||||||||||||||||
"prepare": "husky" | ||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||
"devDependencies": { | ||||||||||||||||||||||||||
"husky": "^9.0.11", | ||||||||||||||||||||||||||
"lint-staged": "^15.2.2", | ||||||||||||||||||||||||||
"prettier": "*", | ||||||||||||||||||||||||||
"turbo": "^2.0.4", | ||||||||||||||||||||||||||
"typescript": "*" | ||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||
"lint-staged": { | ||||||||||||||||||||||||||
"src/**/*.{js,jsx,ts,tsx}": [ | ||||||||||||||||||||||||||
"eslint --cache --fix", | ||||||||||||||||||||||||||
"prettier --cache --write" | ||||||||||||||||||||||||||
] | ||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||
Comment on lines
+23
to
+28
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion lint-staged 설정을 검토해주세요. 현재 lint-staged 패턴이 다음과 같이 수정을 제안드립니다: "lint-staged": {
- "src/**/*.{js,jsx,ts,tsx}": [
+ "{apps,packages}/**/src/**/*.{js,jsx,ts,tsx}": [
"eslint --cache --fix",
"prettier --cache --write"
]
}, 📝 Committable suggestion
Suggested change
|
||||||||||||||||||||||||||
"resolutions": { | ||||||||||||||||||||||||||
"typescript": "^5.4.5", | ||||||||||||||||||||||||||
"react": "^18", | ||||||||||||||||||||||||||
|
@@ -29,4 +40,4 @@ | |||||||||||||||||||||||||
"node": ">=18", | ||||||||||||||||||||||||||
"pnpm": ">=9.0.0" | ||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
중복된 린트 스크립트를 정리해주세요.
lint:fix
와lint-staged
스크립트가 동일한 명령을 수행하고 있습니다. 중복을 제거하고 하나의 스크립트만 유지하는 것이 좋겠습니다.다음과 같이 수정하는 것을 제안합니다:
📝 Committable suggestion