-
Notifications
You must be signed in to change notification settings - Fork 46
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
Move common tsconfig
, eslintrc
into seperate packages
#1114
Move common tsconfig
, eslintrc
into seperate packages
#1114
Conversation
|
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## next-v1 #1114 +/- ##
========================================
Coverage 78.00% 78.00%
========================================
Files 291 291
Lines 3778 3778
Branches 833 833
========================================
Hits 2947 2947
Misses 537 537
Partials 294 294 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Chromatic Report🚀 Congratulations! Your build was successful! |
"eslint-plugin-react-hooks": "^4.6.0", | ||
"typescript": "^4.9.4" | ||
} | ||
} |
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.
👍
packages/tsconfig/script.json
Outdated
@@ -1,7 +1,8 @@ | |||
{ | |||
"$schema": "https://json.schemastore.org/tsconfig", |
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.
👀
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.
https://json-schema.org/ turbo 예제에서도 사용하고 있어서 일단 사용해 보았습니다. 원래 VSCode에서 파일명이 tsconfig*
이면 잡아주는 것 같긴 한데, 이 파일은 그렇지 않아서 유용하다고 생각했습니다.
@@ -0,0 +1,17 @@ | |||
module.exports = { | |||
root: true, | |||
extends: ['bezier'], |
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.
package 이름이 eslint-config-bezier
라서 bezier
로 로드되는거죠?
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.
넵 맞습니다!
The
eslint-config-
prefix can be omitted from the configuration name. For example,airbnb
resolves aseslint-config-airbnb
. #
IDE의 ESLint 설정을 모노레포 환경에 맞게 잡으려면 https://medium.com/devityoself/monorepo-eslint-vscode-6f5982c8404d 이 글과 같이 IDE별로 별도의 설정이 필요한데, |
레포에 포함해도 괜찮다고 생각해요. https://github.com/Shopify/polaris/tree/main/.vscode 이런 예시들도 있구요. |
Self Checklist
CODEOWNERS
file.Related Issue
Summary
tsconfig
), ESLint(eslintrc
)를 모노레포 내 별도의 패키지로 분리하고, 사용처에서 이를 사용합니다.supports/tsconfig
supports/eslint-config-bezier
Details
tsconfig.eslint.json
과tsconfig.script.json
을 별도의 패키지로 분리합니다..eslintrc.js
)과 관련 패키지(@channel.io/eslint-config
,@channel.io/eslint-plugin
, peerDeps)들을 별도의 패키지로 분리합니다.Breaking change or not (Yes/No)
No.
References