Skip to content
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

pkg: fix fragments should contain more then one child #20254

Merged
merged 1 commit into from
Apr 8, 2024

Conversation

jelly
Copy link
Member

@jelly jelly commented Apr 2, 2024

oxlint a Rust implementation of eslint finds more issues for the jsx-no-useless-fragment eslint react rule. The Rust implementation is not feature complete yet so we can't yet switch over.

https://oxc-project.github.io/blog/2023-12-12-announcing-oxlint.html

@jelly jelly requested a review from martinpitt April 2, 2024 18:23
Copy link
Member

@martinpitt martinpitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hah, nice cleanup!

Comment on lines 258 to 260
isInline={!!iface}
onClick={syn_click(model, show)}
variant={!iface ? "secondary" : "link"}>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix the indentation.

Copy link
Member Author

@jelly jelly Apr 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems this comes up too much :) I think we should really let eslint handle this better but that requires some starter-kit / podman work first :)

Comment on lines 1595 to 1600
close={() => this.setState({ showRestartServicesDialog: false })}
state={this.state.state}
callTracer={(state) => this.callTracer(state)}
onValueChanged={delta => this.setState(delta)}
loadUpdates={this.loadUpdates} />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here -- either the properties should align (prefered), or it should at least have a consistent 4-space indentation).

`oxlint` a Rust implementation of `eslint` finds more issues for the
`jsx-no-useless-fragment` eslint react rule. The Rust implementation is
not feature complete yet so we can't yet switch over.
@jelly jelly force-pushed the jsx-no-useless-fragment branch from af17048 to e75bd6f Compare April 3, 2024 07:03
@jelly jelly requested a review from martinpitt April 3, 2024 07:03
Copy link
Member

@martinpitt martinpitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cheers!

Comment on lines +1464 to +1465
<RestartServices
tracerPackages={this.state.tracerPackages}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These 2 added lines are not executed by any test.

@martinpitt martinpitt merged commit b50a423 into cockpit-project:main Apr 8, 2024
74 of 76 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants