-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[AutoComplete] Add callback signatures to property docs #3550
Conversation
@@ -30,7 +30,7 @@ rules: | |||
jsx-quotes: [2, prefer-double] | |||
keyword-spacing: 2 | |||
key-spacing: 2 | |||
max-len: [2, 120, 4] | |||
max-len: [2, 120, 4, {"ignoreComments": true}] |
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.
I'm again this change.
It's the minimum value so that any line fit into the GitHub web view.
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.
What do you suggest instead?
@oliviertassinari I've removed the lint rule change and now the new lines in |
Breaking the description in multiple lines seems better. Thanks 👍. |
Thanks @oliviertassinari , I agree about the unit tests on |
@theosherry - sorry to be a nuisance, but please could you split the PropTypeDescription update into it's own PR? |
Sure, no problem |
[AutoComplete] Add callback signatures to property docs
@theosherry Thanks! |
[AutoComplete] Add callback signatures to property docs
Hey, this is more work towards closing #3096
I had to add an ignore comments flag to the max-len lint rule; if you break up a
@param
tag into multiple lines it causes errors in the parsing. I'm not sure if this is the best way to fix the problem, so let me know what you think.