Skip to content

[Bug]: change default option for functions option in react/require-default-props rule #3543

Closed
@alvessteve

Description

@alvessteve

Is there an existing issue for this?

  • I have searched the existing issues and my issue is unique
  • My issue appears in the command-line and not only in the text editor

Description Overview

According to this issue, in future version using defaultProps will be deprecated for functions components and not recommended for function components.

However, according the documentation, function components still relies on defaultProps.

Expected Behavior

Change the default value of the rule option to be defaultArguments instead of defaultProps

eslint-plugin-react version

v7.31.11

eslint version

v8.31.0

node version

v18.12.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions