refactor(uikit-playground): Adapt to linting changes#39162
refactor(uikit-playground): Adapt to linting changes#39162dionisio-bot[bot] merged 9 commits intodevelopfrom
Conversation
…returning function JSX attribute
|
Looks like this PR is ready to merge! 🎉 |
|
|
Important Review skippedToo many files! This PR contains 173 files, which is 23 over the limit of 150. ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (173)
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
/jira ARCH-1935 |
There was a problem hiding this comment.
1 issue found across 174 files
Note: This PR contains a large number of files. cubic only reviews up to 75 files per PR, so some files may not have been reviewed.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="apps/uikit-playground/src/Components/PersistStore/PersistStore.tsx">
<violation number="1" location="apps/uikit-playground/src/Components/PersistStore/PersistStore.tsx:15">
P2: `useEffect` should return a cleanup function. This line calls `removeEventListener` immediately and returns `void`, so the unload handler is never cleaned up; it also doesn’t match the `onbeforeunload` property assignment. Return a cleanup function and clear/reset the handler (or use add/removeEventListener with the correct event name).</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
apps/uikit-playground/src/Components/PersistStore/PersistStore.tsx
Outdated
Show resolved
Hide resolved
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #39162 +/- ##
===========================================
- Coverage 70.70% 70.66% -0.04%
===========================================
Files 3195 3195
Lines 113106 113106
Branches 20513 20493 -20
===========================================
- Hits 79970 79932 -38
- Misses 31088 31127 +39
+ Partials 2048 2047 -1
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Proposed changes (including videos or screenshots)
It applies the new centralized ESLint rules over the
@rocket.chat/uikit-playgroundworkspace.Issues
Related to #38989.
Further comments
It workspace demanded a set of isolated ESLint rules and its own Prettier configuration. While most of the changes were autofixed and/or easy to adapt, there is some level of refactoring involved that demands careful code review.
Task: ARCH-2013