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

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

Closed
2 tasks done
alvessteve opened this issue Mar 3, 2023 · 1 comment
Closed
2 tasks done
Labels

Comments

@alvessteve
Copy link

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

@alvessteve alvessteve added the bug label Mar 3, 2023
@ljharb
Copy link
Member

ljharb commented Mar 3, 2023

Until a version of React is released that contains this (unfortunate and unwise) change, there's no point in updating the docs.

@ljharb ljharb closed this as completed Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants