Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Enhancement: Detect declared modules for TypeOrValueSpecifier #6861

Closed
Assignees
JoshuaKGoldberg
Labels
enhancementNew feature or requestlocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.package: type-utilsIssues related to the @typescript-eslint/type-utils packageteam assignedA member of the typescript-eslint team should work on this.
@marekdedic

Description

@marekdedic

Before You File a Proposal Please Confirm You Have Done The Following...

Relevant Package

type-utils

My proposal is suitable for this project

  • I believe my proposal would be useful to the broader TypeScript community (meaning it is not a niche proposal).

Description

ThePackageSpecifier check currently checks the declaration file path for the stringnode_modules and the name of the package:

https://github.com/typescript-eslint/typescript-eslint/blob/v6/packages/type-utils/src/TypeOrValueSpecifier.ts#L173-L179

I propose to use TypeScript'ssourceFileToPackageName map definedhere.

Only problem is that it is currently marked as internal - but maybe we could get TS maintainers to open it up?

Fail

-

Pass

-

Additional Info

No response

Metadata

Metadata

Labels

enhancementNew feature or requestlocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.package: type-utilsIssues related to the @typescript-eslint/type-utils packageteam assignedA member of the typescript-eslint team should work on this.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp