From 6ad27c5174b7dbb3d117bac95027beb812cd7a9e Mon Sep 17 00:00:00 2001 From: Filipe Silva Date: Fri, 14 Jul 2017 21:19:12 +0100 Subject: [PATCH] fix(@angular/cli): always ignore node_modules for lint Fix #6626 --- .../@angular/cli/blueprints/ng/files/angular-cli.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/@angular/cli/blueprints/ng/files/angular-cli.json b/packages/@angular/cli/blueprints/ng/files/angular-cli.json index 46815b975627..c287ee979cbb 100644 --- a/packages/@angular/cli/blueprints/ng/files/angular-cli.json +++ b/packages/@angular/cli/blueprints/ng/files/angular-cli.json @@ -36,13 +36,16 @@ }, "lint": [ { - "project": "<%= sourceDir %>/tsconfig.app.json" + "project": "<%= sourceDir %>/tsconfig.app.json", + "exclude": "**/node_modules/**" }, { - "project": "<%= sourceDir %>/tsconfig.spec.json" + "project": "<%= sourceDir %>/tsconfig.spec.json", + "exclude": "**/node_modules/**" }, { - "project": "e2e/tsconfig.e2e.json" + "project": "e2e/tsconfig.e2e.json", + "exclude": "**/node_modules/**" } ], "test": {