-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
package: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin
Description
Repro
{
"rules": {
"@typescript-eslint/no-explicit-any": ["error", { "ignoreGenericConstraints": true }]
}
}
type IsString<T extends any> = T extends string ? true : false;
type CodomainOf<T extends Record<string, any>> = T extends Record<string, infer R> ? R : never;
Expected Result
No errors for explicit any
if they are used in generic constraints.
Actual Result
There is no such option to disable errors/warnings for explicit any
usage in generic constraints.
Metadata
Metadata
Assignees
Labels
package: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin