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

feat: data-codemods cleanup rule #745

Merged
merged 6 commits into from
Aug 28, 2024

Conversation

adamviktora
Copy link
Contributor

@adamviktora adamviktora commented Aug 21, 2024

Closes #723

Also updates baseReadme.md file.

Copy link
Collaborator

@wise-king-sullyman wise-king-sullyman left a comment

Choose a reason for hiding this comment

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

Looks great! Two small notes/thoughts:

Comment on lines 84 to 86
// data-codemods-cleanup rule won't be included in the recommended rule set
delete configs.recommended.rules[prefix + "data-codemods-cleanup"];

Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you not just add the rule to the betaRules array in the customization file instead of adding logic to this file?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, yeah, I did not read the betaRuleNames description, the name "beta" confused me a bit

Copy link
Collaborator

Choose a reason for hiding this comment

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

FWIW Austin and I had a convo about the naming of the array, though I don't think we settled on whether to change it (or to what if so). Maybe post v6 we can have a brainstorm session about that + anything else we'd like to see changed in the repo

Comment on lines 1 to 13
import {
DualListSelector,
LoginMainFooterLinksItem,
MastheadLogo,
} from "@patternfly/react-core";

export const DataCodemodsCleanupInput = () => (
<>
<DualListSelector />
<LoginMainFooterLinksItem />
<MastheadLogo />
</>
);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like the output file had the formatter ran on it after execution. Doesn't really matter now, but will if we ever implement auto checking of these tsx files in CI.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops, I thought we should run prettier on these output files, I do it every time 🤦

Copy link
Collaborator

@thatblindgeye thatblindgeye left a comment

Choose a reason for hiding this comment

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

👍🏼 other than the above

@adamviktora adamviktora force-pushed the data-codemods-cleanup branch from 4c9da6c to 6a2f521 Compare August 28, 2024 08:57
@thatblindgeye thatblindgeye merged commit 52845bb into patternfly:main Aug 28, 2024
3 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.

Add codemod for removing our data-codemod attributes
3 participants