Skip to content

chore(React19): ran upgrade eslint and codemods#11508

Merged
tlabaj merged 3 commits into
patternfly:mainfrom
thatblindgeye:react19Eslint
Feb 12, 2025
Merged

chore(React19): ran upgrade eslint and codemods#11508
tlabaj merged 3 commits into
patternfly:mainfrom
thatblindgeye:react19Eslint

Conversation

@thatblindgeye

Copy link
Copy Markdown
Contributor

What: Closes #11483 , #11369, #11368

The eslint plug from 11483 only auto-updated the MockedTableChanges file (in react-table's test-helpers)

I also ran the React 19 codemod from their upgrade guide, which only auto-updated the Alert test file's act import.

Everything else was autoupdated by the typescript React 19 codemod (I had to manually update 3 other instance of a useRef).

Additional issues:

@patternfly-build

patternfly-build commented Feb 6, 2025

Copy link
Copy Markdown
Collaborator

@thatblindgeye thatblindgeye marked this pull request as ready for review February 10, 2025 14:42
@thatblindgeye thatblindgeye requested review from a team, mfrances17 and tlabaj and removed request for a team February 10, 2025 14:43

@mfrances17 mfrances17 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I tested this pretty thoroughly and there were no noticeable visual/behavioral issues, and no additional errors thrown in the console as a result of upgrading, so nice job. 👍

I do have a couple of comments regarding widespread use of any in these changes, which in general we should be avoiding when possible, since it's basically defeating the purpose of TS.

Comment thread packages/react-core/src/components/Nav/NavItem.tsx
Comment thread packages/react-core/src/components/Nav/NavItem.tsx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

4 participants