Docs/Naming: Standardize on "Promise" or "Thenable" in rule names #6012
JoshuaKGoldberg
started this conversation in
Technical Discussions
Replies: 1 comment · 2 replies
-
IIRC the name now-a-days yeah promises all the way. I wonder if we can also handle this from a documentation side of things - maybe adding keywords to rule metadata so that you can search for themes instead of relying solely on rule names? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Before You File a Documentation Request Please Confirm You Have Done The Following...
Suggested Changes
One rule directly refers to Thenables:
@typescript-eslint/await-thenable
Other rules refer to Promises:
@typescript-eslint/no-floating-promises
@typescript-eslint/no-misused-promises
@typescript-eslint/promise-function-async
IMO it's confusing how only one rule refers to Thenables... even though that's technically the correct term.
Thoughts: should we rename some rule(s) for clarity vs. discoverability? I haven't re-looked deeply into the rules, but if no-floating-promises & no-misused-promises actually work on all Thenables (and not just Promises) then maybe we should call them all thenables? Or maybe most users don't know what a Thenable is, and we should always say Promises?
Affected URL(s)
https://typescript-eslint.io/rules/
Beta Was this translation helpful? Give feedback.
All reactions