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

Fix compatibility with eslint-plugin-react 7.30.0 #332

Merged
merged 1 commit into from
May 30, 2022

Conversation

BPScott
Copy link
Member

@BPScott BPScott commented May 27, 2022

Description

Fixes #331

@shopify/eslint-plugin reached into eslint-plugin-react to access some of its internal utilities. The location of those internal utilities moved around in v7.30.0 and broke our greedy fingers.

This PR copies the utilities that we depend upon into our codebase, and removes the
need to touch eslint-plugin-react's internals. It also removes usage of
Component.detect as it is no longer needed - we only needed it to access the utilities, which now no longer need to be wrapped. jsx-eslint/eslint-plugin-react#3273 suggests that shall result in a small speedup.

Type of change

  • @shopify/eslint-plugin - minor

@BPScott BPScott force-pushed the fix-eslint-plugin-react branch 2 times, most recently from ae80b07 to 5d800b2 Compare May 27, 2022 23:38
We reached into eslint-plugin-react to access some of its internals, and
they moved around in v7.30.0.

Copy the utilities that we depend upon into our codebase, and remove the
need touch eslint-plugin-react's internals. Also remove usage of
Component.detect as it is no longer needed.
@BPScott BPScott requested a review from a team May 27, 2022 23:44
@BPScott BPScott merged commit f148483 into main May 30, 2022
@BPScott BPScott deleted the fix-eslint-plugin-react branch May 30, 2022 17:14
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.

react-no-multiple-render-methods: TypeError: utils.isES6Component is not a function
2 participants