-
Notifications
You must be signed in to change notification settings - Fork 189
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
Issue 2525: Fix lint errors #2532
Conversation
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.
Looks great, a couple things.
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.
Good job, that's a lot of work done, One question: is it an eslint rule to have a return In all functions?
It's this rule: https://eslint.org/docs/rules/consistent-return#require-return-statements-to-either-always-or-never-specify-values-consistent-return So basically, we're required to either have no return or return something in every branch of the function. |
I see. Because the PR changes functions that return void to return a value anyway. It isn't a problem though, maybe it's better to be explicit like this. |
Hardcode react version in eslintrc Require import extension in status/public Run lint before commit
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.
LGTM.
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.
Epic. Thank you for a) noticing this; b) fixing it.
Issue This PR Addresses
Fixes #2525
This fixes some linting errors that were left out due to Eslint not being provided with a target files pattern.
These are some common errors in the code.
Type of Change
Description
Checklist