Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Allow variables and types with same name #359

Closed
@spencerhakim

Description

@spencerhakim

What version of TypeScript are you using?
2.4.2

What version of typescript-eslint-parser are you using?
5.0.1

What code were you trying to parse?

class MyFoo {}
export const Foo = MyFoo;
export type Foo = MyFoo;

What did you expect to happen?
No warnings/errors, this is valid TS.

What happened?
The no-redeclare rule was triggered since Foo had already been defined once.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions