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

fix: turn off promise/always-return #38

Closed
wants to merge 1 commit into from
Closed

Conversation

lukekarrys
Copy link
Contributor

@lukekarrys lukekarrys commented Jul 27, 2022

I started this PR in the CLI to get a feel for how the new rules from #34 and this rule creates a lot of errors.

I can see how this helps avoid errors but we use Promises a lot for control flow that doesn't return a value. I suggest we turn this off.

Ref: https://github.com/xjamundx/eslint-plugin-promise/blob/development/docs/rules/always-return.md

@lukekarrys lukekarrys requested a review from a team as a code owner July 27, 2022 22:12
@wraithgar
Copy link
Member

How do we get to a point where we can turn this back on?

@lukekarrys
Copy link
Contributor Author

Closing this. While it's a lot of manual work to fix, this rule is good and we should apply it everywhere by default. We should be working to fix it as we go. It can be turned off per file, project, line, etc if it blocks linting but those are easier to spot and fix iteratively in the future.

@lukekarrys lukekarrys closed this Aug 16, 2022
@lukekarrys lukekarrys deleted the lukekarrys-patch-1 branch August 16, 2022 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants