From c8ca55dc8dbb3da11fab597aec83518f71967d4b Mon Sep 17 00:00:00 2001 From: Sebastien Douheret Date: Wed, 20 Jun 2018 14:56:09 +0200 Subject: Fix invalid linter conf and fix reported lint errors Change-Id: I57f83de18965f085ce1f51d5ae4d018b542edc4e Signed-off-by: Sebastien Douheret --- webapp/.angular-cli.json | 10 ++++++---- .../app/pages/supervision/supervision-config.component.scss | 7 ++++--- .../targets/target-add-modal/target-add-modal.component.ts | 2 +- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/webapp/.angular-cli.json b/webapp/.angular-cli.json index 9aa0157..e257100 100644 --- a/webapp/.angular-cli.json +++ b/webapp/.angular-cli.json @@ -47,14 +47,16 @@ }, "lint": [ { - "files": "src/**/*.ts", - "project": "src/tsconfig.app.json" + "project": "src/tsconfig.app.json", + "exclude": "**/node_modules/**" }, { - "project": "src/tsconfig.spec.json" + "project": "src/tsconfig.spec.json", + "exclude": "**/node_modules/**" }, { - "project": "e2e/tsconfig.e2e.json" + "project": "e2e/tsconfig.e2e.json", + "exclude": "**/node_modules/**" } ], "test": { diff --git a/webapp/src/app/pages/supervision/supervision-config.component.scss b/webapp/src/app/pages/supervision/supervision-config.component.scss index ea263cc..7b8d318 100644 --- a/webapp/src/app/pages/supervision/supervision-config.component.scss +++ b/webapp/src/app/pages/supervision/supervision-config.component.scss @@ -111,15 +111,16 @@ button#stop-trace { margin-left: 10px; } +#ws-client { + fill: green; +} + svg#graph { .link { fill: none; stroke: #666; stroke-width: 1.5px; } - #ws-client { - fill: green; - } .link.ws-client { stroke: green; } diff --git a/webapp/src/app/pages/targets/target-add-modal/target-add-modal.component.ts b/webapp/src/app/pages/targets/target-add-modal/target-add-modal.component.ts index 6260b87..7545845 100644 --- a/webapp/src/app/pages/targets/target-add-modal/target-add-modal.component.ts +++ b/webapp/src/app/pages/targets/target-add-modal/target-add-modal.component.ts @@ -161,7 +161,7 @@ export class TargetAddModalComponent implements OnInit { } private _isIPv4(str) { - const ipv4Maybe = /^(\d+)\.(\d+)\.(\d+)\.(\d+)$/ + const ipv4Maybe = /^(\d+)\.(\d+)\.(\d+)\.(\d+)$/; if (!ipv4Maybe.test(str)) { return false; } -- cgit 1.2.3-korg