-
Notifications
You must be signed in to change notification settings - Fork 605
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
Prefer JSX fragment shorthand syntax #3075
Prefer JSX fragment shorthand syntax #3075
Conversation
/hold |
d2b7c5b
to
b9f3f36
Compare
/hold cancel |
@spadgett @christianvogt Updating our ESLint stack to latest component versions turns on the If you prefer the classic |
) : ( | ||
<LoadingBox className="loading-box loading-box__loading" /> | ||
); | ||
return skeleton ? <>{skeleton}</> : <LoadingBox className="loading-box loading-box__loading" />; |
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.
This is the only non-trivial replacement change.
/hold cancel |
I prefer the shorthand 👍 |
Same. |
/hold cancel |
b9f3f36
to
1561dd9
Compare
Rebased & ensured that all Updated Now enforcing |
1561dd9
to
7569576
Compare
@christianvogt ESLint config changes extracted into a separate commit. |
7569576
to
62ace81
Compare
/retest |
/lgtm you'll be up against the queue with rebasing |
/retest Please review the full test history for this PR and help us cut down flakes. |
2 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/lgtm cancel needs rebase :/ we might hold other PRs after this is rebased |
Rebasing now. |
62ace81
to
d043997
Compare
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: christianvogt, spadgett, vojtechszocs The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@vojtechszocs: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Hmm, /retest |
Just another step towards updating common ESLint stack & associated rule changes.
Related ESLint rule:
react/jsx-fragments
(should be turned on by default in future)Note: this excludes cases where the fragment receives props, like
<React.Fragment key="key">