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

ref(js): Cleanup notification/utils.tsx #28679

Merged

Conversation

evanpurkhiser
Copy link
Member

  • Move documentation comments above the function so LSP correctly picks
    up on them

  • Reduce some nesting with guard statements

 - Move documentation comments above the function so LSP correctly picks
   up on them

 - Reduce some nesting with guard statements
Copy link
Contributor

@mgaeta mgaeta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops it looks like we we've been doing python style docstring this whole time 😬

@@ -385,8 +384,6 @@ export const getParentField = (
parentId: string
) => NotificationSettingsObject
): FieldObject => {
/** Render each parent and add a default option to the the field choices. */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we auto format this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are you thinking?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

idk if there's a lint rule for it

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like no comments like /** ... */?

Or also auto wrapping?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment style

@evanpurkhiser evanpurkhiser merged commit 372dbde into master Sep 20, 2021
@evanpurkhiser evanpurkhiser deleted the evanpurkhiser/ref-js-cleanup-notification-utils-tsx branch September 20, 2021 19:13
@github-actions github-actions bot locked and limited conversation to collaborators Oct 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants