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(no-return-wrap): fix it not reporting for arrow functions without braces #194

Merged
merged 2 commits into from
Jul 8, 2020
Merged

Conversation

cherryblossom000
Copy link
Contributor

What is the purpose of this pull request?

  • Documentation update
  • Bug fix
  • New rule
  • Changes an existing rule
  • Add autofixing to a rule
  • Other, please explain:

What changes did you make? (Give an overview)
Checks CallExpressions that are direct descendants of ArrowFunctionExpressions (meaning that the arrow function returns a CallExpression without braces) and reports if it is Promise.resolve or Promise.reject.

Fixes #193.

@xjamundx
Copy link
Contributor

xjamundx commented Jul 2, 2020 via email

@xjamundx xjamundx merged commit 41ec09f into eslint-community:master Jul 8, 2020
@xjamundx
Copy link
Contributor

xjamundx commented Jul 8, 2020

This is great. I haven't published any updates to this repo in ages, so it may take a minute, but thank you!

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.

no-return-wrap doesn't work for arrow functions without braces
2 participants