Skip to content

Dead-code analysis ignores knip.config.ts #1583

Description

@simPod

Problem

React Doctor 0.9.3 uses deslop-js for dead-code diagnostics but does not consume the standard TypeScript Knip config file. It only reads knip.json and package.json#knip when collecting entry and ignore patterns.

In a workspace with client/knip.config.ts, React Doctor resolves client as a scan root and reports generated files that the existing Knip config already ignores. To suppress the false positives, we must duplicate those paths in client/package.json.

Expected

React Doctor should load knip.config.{ts,js,mjs,cjs} through Knip's config resolution, or otherwise support the same config locations and fields as Knip for its dead-code integration.

Impact

Projects using standard Knip TypeScript configuration need duplicated, divergent ignore declarations solely for React Doctor.

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