-
Notifications
You must be signed in to change notification settings - Fork 12k
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
ng lint, is linting node_modules files. #5063
Comments
Hey @daBishMan, this is because the library you're using publishes https://github.com/angular/angular-cli/blob/master/CHANGELOG.md#breaking-changes-3 |
Thank you so much for your quick reply. I have included the following in .angular.cli.json based on my understanding. I looked at https://github.com/angular/angular-cli/blob/master/packages/%40angular/cli/lib/config/schema.json
this is how I excluded in .angular-cli.json, but it is still happening, am I missing something. |
I misspoke when I suggested it was in the #4350 (comment) discusses what needs to be done. In short, this should fix your issue. "lint": [
{
"project": "src/tsconfig.app.json",
"exclude": "**/node_modules/**/*"
},
{
"project": "src/tsconfig.spec.json",
"exclude": "**/node_modules/**/*"
},
{
"project": "e2e/tsconfig.e2e.json",
"exclude": "**/node_modules/**/*"
}
], |
thank you so much again for your help. This does fix my issue. I am going to close this issue. |
My config:
Still linting node_modules. |
Apparently, we have to set up a special glob pattern in .angular-cli.json instead of tsconfig.* (angular/angular-cli#5063). We also no longer need tsconfig.lint.json.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
OS?
Versions.
Repro steps.
The log given by the failure.
/node_modules/lru-ts/index.ts[231, 5]:
Mention any other details that might be useful.
this did not happen in 32.3
The text was updated successfully, but these errors were encountered: