Skip to content

🛠 Tooling: Remove ignoring of utilities.ts from knip.jsonc #740

Open
@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Bug Report Checklist

  • I have tried restarting my IDE and the issue persists.
  • I have pulled the latest main branch of the repository.
  • I have searched for related issues and found none that matched my issue.

Overview

Following #713, I added an ignore line to the Knip config:

"ignore": ["src/types/utilities.ts"], // https://github.com/webpro-nl/knip/issues/996

Corresponding Knip issue: webpro-nl/knip#996

I have a few code pairs like this:

export function intersectionConstituents() {
  // ...
}

/** @deprecated use {@link intersectionConstituents}. */
export const intersectionTypeParts = intersectionConstituents;

Knip is reporting on those pairs:

Duplicate exports (3)
intersectionConstituents, intersectio...  src/types/utilities.ts
typeConstituents, typeParts               src/types/utilities.ts
unionConstituents, unionTypeParts         src/types/utilities.ts

Filing a tracking issue to see that we get rid of that ignore.

Additional Info

Per webpro-nl/knip#996 (comment) it looks like the solution is to use the documented + recommended @alias tag. TIL.

💖

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: toolingManaging the repository's maintenance 🛠️

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions