From 73acbb586f03c874fd8a98b47f6907ad6d629d28 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Fri, 23 Mar 2018 21:29:48 -0600 Subject: [PATCH] Update linting to include the web project as well --- .travis.yml | 2 +- package.json | 5 +++-- web/app/admin/neb/edit/edit.component.ts | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index ded455e..af5dd3c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,4 +10,4 @@ install: - npm install script: - npm run build - - npm run lint:app + - npm run lint diff --git a/package.json b/package.json index 97afd29..4a4b387 100644 --- a/package.json +++ b/package.json @@ -10,8 +10,9 @@ "build": "rimraf build && npm run-script build:web && npm run-script build:app", "build:web": "webpack --progress --profile --bail", "build:app": "tsc -p tsconfig-app.json", - "lint": "npm run-script lint:app", - "lint:app": "tslint --project ./tsconfig-app.json -t stylish" + "lint": "npm run-script lint:app && npm run-script lint:web", + "lint:app": "tslint --project ./tsconfig-app.json -t stylish", + "lint:web": "tslint --project ./tsconfig.json -t stylish" }, "repository": { "type": "git", diff --git a/web/app/admin/neb/edit/edit.component.ts b/web/app/admin/neb/edit/edit.component.ts index 8d46437..aea5a7d 100644 --- a/web/app/admin/neb/edit/edit.component.ts +++ b/web/app/admin/neb/edit/edit.component.ts @@ -65,7 +65,7 @@ export class AdminEditNebComponent implements OnInit, OnDestroy { this.nebApi.getConfigurations().then(configs => { const handledTypes: string[] = []; for (const config of configs) { - if (config.id == nebId) { + if (config.id === nebId) { this.nebConfig = config; } else { for (const type of config.integrations) {