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

Expose Program#isSourceFileFromExternalLibrary #16111

Closed
ajafff opened this issue May 26, 2017 · 0 comments
Closed

Expose Program#isSourceFileFromExternalLibrary #16111

ajafff opened this issue May 26, 2017 · 0 comments
Labels
API Relates to the public API for TypeScript

Comments

@ajafff
Copy link
Contributor

ajafff commented May 26, 2017

tslint --project . allows linting the whole project by creating a Program. But users don't want to lint anything imported from node_modules. TSLint tries to avoid linting dependencies by excluding *.d.ts files by default.
If allowJs is enabled in tsconfig.json, we need another way to exclude node_modules.

Program already has an internal method isSourceFileFromExternalLibrary, that does exactly what we need. Can you expose that API?

@mhegazy mhegazy added the API Relates to the public API for TypeScript label Aug 23, 2017
@mhegazy mhegazy added this to the TypeScript 2.6 milestone Aug 23, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
API Relates to the public API for TypeScript
Projects
None yet
Development

No branches or pull requests

2 participants