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

Add component-lifecycle-imports ESLint rule #2164

Merged
merged 2 commits into from
Jul 14, 2023

Conversation

connor-baer
Copy link
Member

@connor-baer connor-baer commented Jun 30, 2023

Relates to #2094.

Purpose

Circuit UI v7 introduces the new experimental and legacy component lifecycle stages. Components in those stages are exported from separate package entry points. This means the imports for components that have transitioned to a different stage must be updated. This can be automated using a custom ESLint rule.

Approach and changes

  • Added circuit-ui/component-lifecycle-imports rule to update component imports when they move to a different lifecycle stage

Definition of done

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

@changeset-bot
Copy link

changeset-bot bot commented Jun 30, 2023

🦋 Changeset detected

Latest commit: 868ff5d

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 Major

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 Jun 30, 2023

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

Name Status Preview Comments Updated (UTC)
oss-circuit-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 13, 2023 5:27pm

@codecov
Copy link

codecov bot commented Jun 30, 2023

Codecov Report

Merging #2164 (868ff5d) into next (8cb91e3) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             next    #2164      +/-   ##
==========================================
+ Coverage   96.55%   96.57%   +0.02%     
==========================================
  Files         258      259       +1     
  Lines       20338    20481     +143     
  Branches     1922     1938      +16     
==========================================
+ Hits        19637    19780     +143     
  Misses        693      693              
  Partials        8        8              
Impacted Files Coverage Δ
...in-circuit-ui/component-lifecycle-imports/index.ts 100.00% <100.00%> (ø)
...n-circuit-ui/no-invalid-custom-properties/index.ts 100.00% <100.00%> (ø)
...lugin-circuit-ui/prefer-custom-properties/index.ts 100.00% <100.00%> (ø)

@connor-baer connor-baer force-pushed the feature/component-lifecycle-imports branch from 2a5d569 to 868ff5d Compare July 13, 2023 17:25
@connor-baer connor-baer marked this pull request as ready for review July 13, 2023 17:28
@connor-baer connor-baer requested a review from a team as a code owner July 13, 2023 17:28
@connor-baer connor-baer requested review from pdrmdrs and removed request for a team July 13, 2023 17:28
@tareqlol tareqlol removed the request for review from pdrmdrs July 14, 2023 09:18
@connor-baer connor-baer merged commit e1db849 into next Jul 14, 2023
8 checks passed
@connor-baer connor-baer deleted the feature/component-lifecycle-imports branch July 14, 2023 10:33
This was referenced Aug 8, 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.

2 participants