Skip to content

Why ignoreExportsUsedInFile can not be used as individual workspace setting? #1495

Description

@robert-barahona

Suggest an idea for Knip

Hi, our team is using Knip in a monorepo with multiples workspaces.

We're having some "Unused exported types" issues when run knip command, but those exports are being used internally so they should not be reported.

The option ignoreExportsUsedInFile: true in the root config prevents these errors from being reported, but we do not want this configuration to affect all workspaces in the monorepo.

Right now we are using ignore in the workspace config to do not report these issues, but this turns off the linting for so many code of these files.

So, why this option can not be used as individual workspace setting? It will be really useful

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions