Open
Conversation
Member
|
고생하셨습니당 근데 prettier까지 따로 package로 뺄 필요가 있을까 싶은데, 루트 디렉토리에만 prettier config 파일이 존재하지 않나요 ? |
wuzoo
reviewed
Mar 7, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📋 작업 내용
📌 PR Point
✅ 패키지 생성 이유 : 코드의 일관성 확보
crew와playground가 각자 다른 레포에서 고도화 되었기 때문에 코드 스타일에도 많은 차이가 있고, ESLint와 Prettier Rule에도 차이가 컸어요.공유 config 패키지 생성을 통해 모노레포 내 코드들이 일관된 코드 스타일을 유지할 수 있도록 규칙을 재생성했습니다.폴더 구조
✅ ESLint Rule
프로젝트 간 일관성을 유지하고 버그를 줄이는 방향으로 설정했어요.
import 강제 정렬: playground에만 있던 rule이었지만 diff가 생길 때 혼란이 생길 수 있기 때문에 import 순서를 통일했습니다.react-hooks/rules-of-hooks: error,exhaustive-deps: warn: hooks 위반은 런타임 버그로 직결되므로, 명시적으로 선언했습니다.ignore pattern: playground에서varsIgnorePattern,argsIgnorePattern등 규칙이 자세하게 작성되어 있어서 이 부분을 따랐습니다.index.jsnext.js✅ Prettier Rule
{ "arrowParens": "always", "endOfLine": "lf", "jsxSingleQuote": true, "printWidth": 120, "quoteProps": "consistent", "semi": true, "singleQuote": true, "tabWidth": 2, "trailingComma": "all" }✅ package.json
아래 명령어를 통해 lint와 prettier 검사가 가능해요.
yarn lint: "turbo lint",yarn lint:fix: "turbo lint -- --fix",yarn prettier: "turbo prettier",참고