10000 Docs: Add explainer around `any` alternatives with no-explicit-any · Issue #11063 · typescript-eslint/typescript-eslint · GitHub
[go: up one dir, main page]

Skip to content
Docs: Add explainer around any alternatives with no-explicit-any #11063
Open
@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Before You File a Documentation Request Please Confirm You Have Done The Following...

Suggested Changes

We sometimes get requests for no-explicit-any like:

...where folks have situations they believe any to be a correct and safe choice to use. Almost all -or maybe all?- of those situations end up having safety holes and/or being times when never or unknown would be more appropriate.

But, https://typescript-eslint.io/rules/no-explicit-any doesn't have a mention of never, and only light documentation on strategies for the points in those requests.

Suggestion: how about we bolster the no-explicit-any docs with some FAQs?

Affected URL(s)

https://typescript-eslint.io/rules/no-explicit-any

Additional Info

#10362 -> https://typescript-eslint.io/blog/avoiding-anys#banning-explicit-anys added some docs, but isn't super comprehensive. It's more of a high-level overview with select situations and strategies.

💖

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationDocumentation ("docs") that needs adding/updatingteam 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

      0