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

Support of Project Reference #21

Open
busyscout opened this issue Feb 5, 2019 · 1 comment
Open

Support of Project Reference #21

busyscout opened this issue Feb 5, 2019 · 1 comment
Labels
discussion Discussion about a feature or topic

Comments

@busyscout
Copy link

Is it possible to run this rule in CLI when base and dependent classes are in different projects?
We have base project with common logic and several dependent projects (though TS 3.0 feature - project reference). So, base and dependent classes are in different typescript projects.
In VS2017 this rule works fine.
But I don't understand is it possible to check it with CLI. In TSLint CLI you can use only one project in --project argument. But in this case referenced projects are not used and I get a lot of false errors, that my override methods do not correspond to any base class. If I don't use --project argument I get warning that this rule requires type checking and I should use --project arg.

@hmil
Copy link
Owner

hmil commented Feb 6, 2019

Your question applies to all tslint rules that use type checking. I do not know the exact answer, but I guess it should work as long as tslint is able to use the proper version of typescript to analyze the source files. Maybe you can tell the CLI to use the locally installed typescript. Anyways, you should look for the answer in TSLint.

@hmil hmil added the discussion Discussion about a feature or topic label Feb 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Discussion about a feature or topic
Projects
None yet
Development

No branches or pull requests

2 participants