Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[no-explicit-any] Option to disable rule for generic constraints #642

Closed
Labels
package: eslint-pluginIssues related to @typescript-eslint/eslint-plugin
@anilanar

Description

@anilanar

Repro

{"rules": {"@typescript-eslint/no-explicit-any": ["error", {"ignoreGenericConstraints":true }]  }}
typeIsString<Textendsany>=Textendsstring ?true :false;typeCodomainOf<TextendsRecord<string,any>>=TextendsRecord<string, inferR> ?R :never;

Expected Result
No errors for explicitany if they are used in generic constraints.

Actual Result
There is no such option to disable errors/warnings for explicitany usage in generic constraints.

Metadata

Metadata

Assignees

No one assigned

    Labels

    package: eslint-pluginIssues related to @typescript-eslint/eslint-plugin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp