-
-
Notifications
You must be signed in to change notification settings - Fork 24
Closed
Labels
Status: ReleasedThe issue has been releasedThe issue has been releasedType: BugSomething isn't workingSomething isn't working
Description
Describe the bug
Why rule no-default-props is positive for class components?
React documentations says:
Class components will continue to support defaultProps since there is no ES6 alternative.
So why you apply this rule for class components?
Reproduction
Any class component with defaultProps breaks when rule is on
Expected behavior
Rule should apply for funcional components or it should have some config options
Platform and versions
"@eslint-react/eslint-plugin": "1.52.1",
Stack trace
Additional context
No response
Metadata
Metadata
Assignees
Labels
Status: ReleasedThe issue has been releasedThe issue has been releasedType: BugSomething isn't workingSomething isn't working