Skip to content

Turn off no-unused-vars for global type imports #23

Open
@mattrabe

Description

@mattrabe

no-unused-vars is not useful for files that are re-importing a global type from one app/package to another. For example this file which has this content:

src/types/PrisnaJson.d.ts:

// This brings PrismaJson into global scope
import type * as PrismaJson from '@watch-party/orm/types/PrismaJson' // eslint-disable-line @typescript-eslint/no-unused-vars

Can we disable that rule just for .d.ts files?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions