-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat(eslint-plugin): added new rule await-promise #192
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): added new rule await-promise #192
Conversation
Adds the equivalent of TSLint's `await-promise` rule.
Codecov Report
@@ Coverage Diff @@
## master #192 +/- ##
==========================================
+ Coverage 96.95% 96.96% +0.01%
==========================================
Files 71 72 +1
Lines 2694 2705 +11
Branches 435 436 +1
==========================================
+ Hits 2612 2623 +11
Misses 49 49
Partials 33 33
|
Co-Authored-By: JoshuaKGoldberg <joshuakgoldberg@outlook.com>
Btw, this ended up using the same |
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.
code LGTM
Apologies for the conflicts, we decided to remove the counts from the ROADMAP here: #225 They are too awkward to maintain manually, so this is the last time you will have to deal with syncing that up! |
Awesome, glad the type checker works out that way! That looks like it'll need to be a shared method by this, #194, and other promise-checking functions. Would you still want the |
I don't think so. And, I think we should rename the rule to
|
Turns out
👍 on
I don't want to bikeshed in your repository (especially if the focus is to adhere to existing ESLint traditions) 😄 so if you'd like I can rename to |
Hey guys, is it still blocked? It looks like the TS migration is done. |
@mysticatea @j-f1 please can you update your reviews of this PR? Probably worth just getting it in at this point! |
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.
I'm sorry for my disappeared. I have lost track in busy of working for ESLint 6.
I left some fixes and suggestions.
Co-Authored-By: JoshuaKGoldberg <joshuakgoldberg@outlook.com>
Co-Authored-By: JoshuaKGoldberg <joshuakgoldberg@outlook.com>
Co-Authored-By: JoshuaKGoldberg <joshuakgoldberg@outlook.com>
Co-Authored-By: JoshuaKGoldberg <joshuakgoldberg@outlook.com>
Perfectly understandable @mysticatea! Thanks for looping back to it. Looks like @JoshuaKGoldberg addressed your most recent feedback, would you agree? |
…int#192) The vscode autoformatter is completely at odds with prettier, so if you don't have the prettier extension installed, you end up with wild changes. Additionally if you've got both the beautify and prettier extensions installed, it can cause some serious issues. Forcing it to be on will probably cause a lot of headaches to anyone trying to contribute unless they get their environment setup perfectly (sorry @weirdpattern for earlier!!)
Adds the equivalent of TSLint's
await-promise
rule.