Skip to content

Conversation

JoshuaKGoldberg
Copy link
Member

PR Checklist

Overview

As described by the issue, allows a string that ends with .json to be counted as a new TypeScript configuration to read from disk. In theory we could reuse the existing configuration if it's the same as --typescript, but that seems like both a rare case and not a significant performance penalty.

Extracts the logic to take --comments globs & existing TS config into a new injected function. This wasn't strictly necessary but they were getting pretty chunky.

Copy link
Collaborator

@KingDarBoja KingDarBoja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eveything looks great but the readme should be updated to include this change.

@JoshuaKGoldberg JoshuaKGoldberg added the status: waiting for author The PR author should address requested changes label Sep 15, 2020
@JoshuaKGoldberg JoshuaKGoldberg added status: waiting for reviewer Waiting for a maintainer to review and removed status: waiting for author The PR author should address requested changes labels Sep 15, 2020
Copy link
Collaborator

@KingDarBoja KingDarBoja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfection 👯‍♂️ 🍻

@JoshuaKGoldberg JoshuaKGoldberg merged commit 0d2a9ea into main Sep 15, 2020
@JoshuaKGoldberg JoshuaKGoldberg deleted the comments-tsconfig branch September 15, 2020 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting for reviewer Waiting for a maintainer to review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow passing a tsconfig.json path to --comments

2 participants