-
Notifications
You must be signed in to change notification settings - Fork 237
Exclude node_modules using tsconfig.json #268
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
Comments
Hey @davidanaya! You must be using [email protected]? If so, the problem comes from the deep metadata collection which is performed by ngast. This is required in order to be able to parse component templates in the appropriate context. Usually the problem occurs when the I'll close this issue since it's related to ngast, not codelyzer. |
I have had the same problem. I could solve it with removing the.
from the config. But no idea why this helps... |
Just to clarify. I was having the same issue and the exclude should be on your Eq:
|
The only working solution for me was to add files against all linting files
|
Hi,
I'm trying to configure codelyzer so that I can run tslint over all the source files in my project, but obviously excluding node_modules.
I configured my script in package.json like this
So if I understand tslint should use tsconfig.json to check which files should lint.
When I run
npm run lint
I get an error in my app.component.ts, which is fine, but I also get a few errors from files within node_modules, something like thisMy tsconfig.json looks like this
and my tslint.json is the standard version as in the npm site
Does anyone know what I'm doing wrong?
Thanks
The text was updated successfully, but these errors were encountered: