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

feat(eslint-plugin): [require-await] add --fix support #1561

Merged
merged 1 commit into from Feb 20, 2020
Merged

feat(eslint-plugin): [require-await] add --fix support #1561

merged 1 commit into from Feb 20, 2020

Conversation

nevir
Copy link
Contributor

@nevir nevir commented Feb 2, 2020

This adds --fix support for the require-await rule.

@typescript-eslint
Copy link
Contributor

Thanks for the PR, @nevir!

typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.

The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.

Thanks again!


🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint. As a thank you, your profile/company logo will be added to our main README which receives thousands of unique visitors per day.

@bradzacher bradzacher added the enhancement New feature or request label Feb 3, 2020
@codecov
Copy link

codecov bot commented Feb 9, 2020

Codecov Report

Merging #1561 into master will decrease coverage by 0.02%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1561      +/-   ##
==========================================
- Coverage   95.55%   95.52%   -0.03%     
==========================================
  Files         142      142              
  Lines        6596     6621      +25     
  Branches     1887     1895       +8     
==========================================
+ Hits         6303     6325      +22     
  Misses        106      106              
- Partials      187      190       +3     

Copy link
Member

@bradzacher bradzacher left a comment

Choose a reason for hiding this comment

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

a few comments, mostly LGTM.

packages/eslint-plugin/src/rules/return-await.ts Outdated Show resolved Hide resolved
@bradzacher bradzacher added the awaiting response Issues waiting for a reply from the OP or another party label Feb 19, 2020
Copy link
Contributor Author

@nevir nevir left a comment

Choose a reason for hiding this comment

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

Thanks for the review 👍 updated

packages/eslint-plugin/src/rules/return-await.ts Outdated Show resolved Hide resolved
packages/eslint-plugin/src/rules/return-await.ts Outdated Show resolved Hide resolved
packages/eslint-plugin/src/rules/return-await.ts Outdated Show resolved Hide resolved
@bradzacher bradzacher removed the awaiting response Issues waiting for a reply from the OP or another party label Feb 20, 2020
@nevir
Copy link
Contributor Author

nevir commented Feb 20, 2020

Oh, ASI, how I love you ><

Copy link
Member

@bradzacher bradzacher left a comment

Choose a reason for hiding this comment

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

LGTM - thanks for adding this!

@bradzacher bradzacher merged commit 9edd863 into typescript-eslint:master Feb 20, 2020
@nevir
Copy link
Contributor Author

nevir commented Feb 20, 2020

Awesome, thanks!

@nevir nevir deleted the nevir/return-await-autofix branch February 20, 2020 17:24
@yangmingshan
Copy link

But this PR is add --fix support for the return-await rule, not require-await. Release log is also wrong.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants