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

Flag and fix renamed props in setToast calls #2175

Merged
merged 1 commit into from
Jul 7, 2023

Conversation

connor-baer
Copy link
Member

Purpose

In #2171, I added ESLint rules to help teams migrate to Circuit UI v7. The circuit-ui/no-renamed-props rule helps to update renamed component prop names and values. However, it didn't handle components that are programmatically rendered through hooks, such as useNotificationToast.

Approach and changes

  • Added support for flagging and fixing setToast calls to the circuit-ui/no-renamed-props rule

Definition of done

  • Development completed
  • Reviewers assigned
  • Unit and integration tests
  • Meets minimum browser support
  • Meets accessibility requirements

@connor-baer connor-baer requested a review from a team as a code owner July 7, 2023 09:15
@connor-baer connor-baer requested review from pdrmdrs and removed request for a team July 7, 2023 09:15
@changeset-bot
Copy link

changeset-bot bot commented Jul 7, 2023

🦋 Changeset detected

Latest commit: 52cefa2

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

This PR includes changesets to release 1 package
Name Type
@sumup/eslint-plugin-circuit-ui Minor

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

@vercel
Copy link

vercel bot commented Jul 7, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
oss-circuit-ui ✅ Ready (Inspect) Visit Preview Jul 7, 2023 9:15am

@codecov
Copy link

codecov bot commented Jul 7, 2023

Codecov Report

Merging #2175 (52cefa2) into main (217c485) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2175   +/-   ##
=======================================
  Coverage   92.09%   92.09%           
=======================================
  Files         171      171           
  Lines        3607     3607           
  Branches     1270     1270           
=======================================
  Hits         3322     3322           
  Misses        264      264           
  Partials       21       21           

@connor-baer connor-baer merged commit 8292173 into main Jul 7, 2023
10 checks passed
@connor-baer connor-baer deleted the feature/renamed-toast-props branch July 7, 2023 09:23
@connor-baer connor-baer mentioned this pull request Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant