Skip to content

prefer-default-export fails on Typescript type declaration #1332

@sharmilajesupaul

Description

@sharmilajesupaul

import/prefer-default-export erroneously warns on files that contain a single exported type.

eg:

// foo.ts 

export type Foo = { // `prefer-default-export` fails on this line
 bar: string;
};

Related issue: #1164

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions