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

Prefer Primer::Beta::Button in ERBLint::Linters::ButtonComponentMigrationCounter #1782

Merged
merged 3 commits into from
Jan 25, 2023

Conversation

jdennes
Copy link
Member

@jdennes jdennes commented Jan 25, 2023

Description

ERBLint::Linters::ButtonComponentMigrationCounter currently asks people to replace raw HTML with Primer::ButtonComponent, but Primer::ButtonComponent is deprecated, which then results in another linter error asking for Primer::ButtonComponent to be replaced with Primer::Beta::Button.

It seems to make more sense that ERBLint::Linters::ButtonComponentMigrationCounter just prefers Primer::Beta::Button?

Integration

Does this change require any updates to code in production?

No.

Merge checklist

  • Added/updated tests
  • Added/updated documentation
  • Added/updated previews

@changeset-bot
Copy link

changeset-bot bot commented Jan 25, 2023

🦋 Changeset detected

Latest commit: 2b7cd6b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/view-components Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jdennes jdennes marked this pull request as ready for review January 25, 2023 05:22
@jdennes jdennes requested review from a team and jonrohan January 25, 2023 05:22
Copy link
Member

@jonrohan jonrohan left a comment

Choose a reason for hiding this comment

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

Great catch! Thanks for the pr

@jonrohan jonrohan merged commit 809d8d3 into primer:main Jan 25, 2023
@primer-css primer-css mentioned this pull request Jan 25, 2023
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.

2 participants