Skip to content

zbędny type assertion po cast na unknown #595

Description

@kguzek

nie wiem czy jest na to jakiś gotowy rule ale jeśli jest to to powinno być banowane:

function doubleCast(typedArgument: Foo) {
  return typedArgument as unknown as Foo;
}

@typescript-eslint/no-unnecessary-type-assertion tego niestety nie wyłapuje

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Fields

    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions