Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow suppressing diagnostics for certain files #700

Closed
freeman opened this issue Dec 22, 2017 · 3 comments
Closed

Allow suppressing diagnostics for certain files #700

freeman opened this issue Dec 22, 2017 · 3 comments

Comments

@freeman
Copy link
Contributor

freeman commented Dec 22, 2017

Expected Behaviour

I'd like to be able to ignore typescript errors/diagnostics for certain files (or only reporting errors for certain files).

This feature is available in at-loader as reportFiles. This can be useful when some type definitions contain errors that do not otherwise break the application. In this case it can be useful to squelch them while waiting for upstream to fix the issue.

Actual Behaviour

ts-loader reports all errors and we can only filter out some specific diagnostics but this is global.

@johnnyreilly
Copy link
Member

I'd be happy to add that functionality - would you like to submit a PR?

@freeman
Copy link
Contributor Author

freeman commented Dec 22, 2017

I'd be happy to have a go at it.

@johnnyreilly
Copy link
Member

Go for it! I suspect it's fairly simple to implement; don't worry about failing tests. Feel free to PR when you've got something up and running and we can iterate together on that as we need to.

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

No branches or pull requests

2 participants