-
Notifications
You must be signed in to change notification settings - Fork 0
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
refactor: remove eslint-config-airbnb* dependencies #160
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
change/@rightcapital-eslint-config-base-f6574db9-989f-40c2-b82d-3cc997bcdc65.json
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 @@ | ||
{ | ||
"comment": "refactor: extract eslint-config-airbnb rules", | ||
"type": "patch", | ||
"packageName": "@rightcapital/eslint-config-base", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
7 changes: 7 additions & 0 deletions
7
...ge/@rightcapital-eslint-config-typescript-react-60f30222-672b-4e3a-af00-1b6bc10bdae6.json
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 @@ | ||
{ | ||
"comment": "refactor: extract eslint-config-airbnb rules", | ||
"type": "patch", | ||
"packageName": "@rightcapital/eslint-config-typescript-react", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
7 changes: 7 additions & 0 deletions
7
change/@rightcapital-eslint-plugin-df99b850-51f8-451f-94f0-aa59c9db13ad.json
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 @@ | ||
{ | ||
"comment": "refactor: extract eslint-config-airbnb rules", | ||
"type": "patch", | ||
"packageName": "@rightcapital/eslint-plugin", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
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 |
---|---|---|
|
@@ -24,14 +24,17 @@ | |
}, | ||
"dependencies": { | ||
"@rushstack/eslint-patch": "1.10.3", | ||
"eslint-config-airbnb-base": "15.0.0", | ||
"confusing-browser-globals": "1.0.11", | ||
"eslint-import-resolver-typescript": "3.6.1", | ||
"eslint-plugin-import": "npm:[email protected]", | ||
"eslint-plugin-simple-import-sort": "12.1.0", | ||
"eslint-plugin-unicorn": "54.0.0" | ||
"eslint-plugin-unicorn": "54.0.0", | ||
"semver": "7.6.2" | ||
}, | ||
"devDependencies": { | ||
"@rightcapital/tsconfig": "workspace:*" | ||
"@rightcapital/tsconfig": "workspace:*", | ||
"@types/confusing-browser-globals": "1.0.3", | ||
"@types/semver": "7.5.8" | ||
}, | ||
"peerDependencies": { | ||
"eslint": "^8.23.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
Oops, something went wrong.
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.
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.
Consider moving these two dependencies to
dependencies
section?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.
We are not reexporting these types; It is not very necessary to do so IMO
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.
cc @liby What do you think ? 👀
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.
Personally, I would prefer to have the package and its type definition in the same section.
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.
Moving type definition packages to
dependencies
can cause unnecessary bloat and version conflicts in production. It's generally better to keep them indevDependencies
to avoid these issues, unless runtime type definitions are specifically needed. This keeps the dependency tree cleaner and more manageable.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.
After discussion, moving
@types/*
todependencies
does not have any obvious issues. This is more like a style preference issue:I prefer to put type packages that are not exported in
devDependencies
.I prefer to put the type package and its package together.
This reminds me of discussions about indentation, and if we want to choose a style preference, we can only vote within the entire team 🥹