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

For TypeScript 2.9, TSLint service should provide the way to ignore error in JSON module #71

Open
Soul-Master opened this issue Jun 2, 2018 · 0 comments

Comments

@Soul-Master
Copy link

Soul-Master commented Jun 2, 2018

In TypeScript 2.9, external module can reference to other JSON module. TSLint language service should allow us to ignore JSON files just like TypeScript definition files. I try to exclude JSON file in tslint/typescript config. But it doesn't work.

The following code can fix this issue on VS2017.
fig.ignoreDefinitionFiles === true && fileName.endsWith('.json')) { return prior; }

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

1 participant