Skip to content

Consider changing rules for determining whether a project uses TS #22018

@tgriesser

Description

@tgriesser

What would you like?

From #22004

I don’t have a tsconfig, don’t use typescript in the project, I have a tsconfig.json.ignore from back when I did, but that’s clearly nothing

We should probably tighten the algorithm for determining whether to use ts or not in a project from:

IF `typescript` dependency in `package.json` OR `tsconfig.json` in `projectRoot/*`

to:

IF `typescript` dependency in `package.json` AND `tsconfig.json` in `projectRoot/*`

We should be detecting via existence in dependencies / devDependencies / peerDependencies as well as resolving it to confirm it's usable

cc @ZachJW34 / @lmiller1990 as I think y'all worked on this one the most.

Why is this needed?

No response

Other

Related: #21927

Metadata

Metadata

Assignees

Labels

CTIssue related to component testingtype: bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions