Navigation Menu

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

react/no-unused-state still crash in eslint-plugin-react@7.29.3 #3236

Closed
lyz810 opened this issue Mar 6, 2022 · 0 comments
Closed

react/no-unused-state still crash in eslint-plugin-react@7.29.3 #3236

lyz810 opened this issue Mar 6, 2022 · 0 comments

Comments

@lyz810
Copy link

lyz810 commented Mar 6, 2022

export const commonMixinWrapper = ComposeComponent => class extends ComposeComponent {
  static getDerivedStateFromProps = ComposeComponent.getDerivedStateFromProps;
// other code ignore...
}

9090999#diff-5f134ac3ac545f8f6e53d703193d37293b484e814d266ecaec79dd591e3049c2R252
In this case, node.value.params is undefined, while node.value is an object
@ljharb

ESLint: 8.10.0
eslint-plugin-react: 7.29.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant