Skip to content

no-undefined-types should check @type #721

Closed
@simonseyock

Description

@simonseyock

Motivation

Eslint complains about unused-vars if they only occur in @type annotations.

For example:

import { SomeType } from 'some/where';

const val = /** @type {SomeType} */ (otherVal);

Current behavior

no-undefined-types does not check @type annotations

Desired behavior

no-undefined-types should check @type annotations


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions