Skip to content

Deprecate return-await option "never" #9433

Closed
@kirkwaiblinger

Description

@kirkwaiblinger

Overview

Doc: https://typescript-eslint.io/rules/return-await#never

The "never" option really just enforces wrong and confusing behavior in error-handling scenarios. In #9364 (comment) / #9364 (comment) we're trying to update the docs in return-await and I'm finding it hard to say when you would want to use the option. @JoshuaKGoldberg and I are thinking this may be a reasonable time to just deprecate it rather than trying too hard to find something nice to say.

Note that

It looks like very few people are using this option: https://sourcegraph.com/search?q=context:global+file:.*eslint%7Cjs%7Cjson%7Cyaml%7Cyml%7Cyaml.*+/%40typescript-eslint%5C/return-await.*never/+-file:.*node_modules.*+-file:dist%5C/.*+count:200000&patternType=standard&sm=0

I propose we document it as deprecated (in #9364), to be removed in a future major version.

Metadata

Metadata

Labels

documentationDocumentation ("docs") that needs adding/updatinglocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.package: eslint-pluginIssues related to @typescript-eslint/eslint-pluginteam assignedA member of the typescript-eslint team should work on this.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions