Skip to content

Allow passing a tsconfig.json path to --comments #709

Closed
@JoshuaKGoldberg

Description

@JoshuaKGoldberg

🚀 Feature Request

As mentioned by @KingDarBoja in #707 (comment), some projects would use a different path or inherit from a base option which is not fully complete (like monorepos or Angular ones).

Existing Behavior

--comments can only be true to use the tsconfig set in --typescript, or a bunch of glob strings to include those files.

Change Proposal

If --comments is provided a single string and that string ends with .json, we should consider that to be a path to a tsconfig.json and use it as the source of which files to replace comments in.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions