Skip to content

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

Closed
@lyz810

Description

@lyz810
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions