Skip to content

[no-explicit-any] ignores generic in function definition #64

Closed
@nstepien

Description

@nstepien

Repro

function test<T extends Partial<any>>() {}

const test = <T extends Partial<any>>() => {};

Expected Result
any should not be allowed there with the rule no-explicit-any enabled.
Actual Result
any is not detected.

Versions

package version
eslint-plugin-typescript 0.14.0
typescript-eslint-parser 21.0.2
typescript 3.2.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpackage: parserIssues related to @typescript-eslint/parser

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions