-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[New] require-default-props
: add option functions
#3249
Conversation
requireDefaultProps
: add option initArgForFnComponents
require-default-props
: add option initArgForFnComponents
require-default-props
: add option initArgForFnComponents
require-default-props
: add option assignDefaultToObjectForFc
Should we also handle |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The point of this option is to allow default arguments on props to "count" alongside defaultProps
, right? It wouldn't force using default arguments, it would just let them satisfy the requirement.
What about allowDefaultPropArguments
? It can't apply except in an SFC, so i don't think that needs calling out, and the =
isn't assignment, and it's not "to an object" either.
No alongside, only use default arguments (this means that forbid to Therefore, what about |
If that’s what it does, then that’s a better name for the option. |
require-default-props
: add option assignDefaultToObjectForFc
require-default-props
: add option forceDefaultPropArguments
Is there anything I can do? |
There is an error when |
require-default-props
: add option forceDefaultPropArguments
require-default-props
: add option functions
Codecov Report
@@ Coverage Diff @@
## master #3249 +/- ##
=======================================
Coverage 97.70% 97.71%
=======================================
Files 123 123
Lines 8716 8750 +34
Branches 3160 3173 +13
=======================================
+ Hits 8516 8550 +34
Misses 200 200
Continue to review full report at Codecov.
|
This comment was marked as resolved.
This comment was marked as resolved.
Two failed coverages appear to need no testing. Should I guard it? |
When we can expect this to be tagged and released? |
v7.30.0 is released. |
Closes #2396
Todo