You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
tslint --project .
allows linting the whole project by creating aProgram
. But users don't want to lint anything imported fromnode_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 excludenode_modules
.Program
already has an internal methodisSourceFileFromExternalLibrary
, that does exactly what we need. Can you expose that API?The text was updated successfully, but these errors were encountered: