Skip to content

Conversation

@dummdidumm
Copy link
Member

Makes it possible to pass a path to a tsconfig or jsconfig file. The path can be relative to the workspace path or absolute. Doing this means that only files matched by the files/include/exclude pattern of the config file are diagnosed. It also means that errors from TypeScript and JavaScript files are reported.
#390

Simon Holthausen added 2 commits May 20, 2021 12:38
Makes it possible to pass a path to a tsconfig or jsconfig file. The path can be relative to the workspace path or absolute. Doing this means that only files matched by the files/include/exclude pattern of the config file are diagnosed. It also means that errors from TypeScript and JavaScript files are reported.
sveltejs#390
@dummdidumm dummdidumm requested a review from jasonlyu123 May 20, 2021 11:28
Copy link
Member

@jasonlyu123 jasonlyu123 left a comment

Choose a reason for hiding this comment

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

Looks good to me. Mentioned a minor one about async in the comment.
BTW. Maybe we can also report errors from the tsconfig.json or svelte.config.js in the future. So that the output won't be flooded with the same error.

@dummdidumm
Copy link
Member Author

Thanks for the feedback - yeah surfacing the errors in tsconfig/jsconfig instead of showing the same error over and over again would be a good idea.

@dummdidumm dummdidumm merged commit 72a8554 into sveltejs:master May 21, 2021
@dummdidumm dummdidumm deleted the svelte-check-tsconfig branch May 21, 2021 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants