Update linting to include the web project as well

This commit is contained in:
Travis Ralston 2018-03-23 21:29:48 -06:00
parent 7c757a79e6
commit 73acbb586f
3 changed files with 5 additions and 4 deletions

View File

@ -10,4 +10,4 @@ install:
- npm install - npm install
script: script:
- npm run build - npm run build
- npm run lint:app - npm run lint

View File

@ -10,8 +10,9 @@
"build": "rimraf build && npm run-script build:web && npm run-script build:app", "build": "rimraf build && npm run-script build:web && npm run-script build:app",
"build:web": "webpack --progress --profile --bail", "build:web": "webpack --progress --profile --bail",
"build:app": "tsc -p tsconfig-app.json", "build:app": "tsc -p tsconfig-app.json",
"lint": "npm run-script lint:app", "lint": "npm run-script lint:app && npm run-script lint:web",
"lint:app": "tslint --project ./tsconfig-app.json -t stylish" "lint:app": "tslint --project ./tsconfig-app.json -t stylish",
"lint:web": "tslint --project ./tsconfig.json -t stylish"
}, },
"repository": { "repository": {
"type": "git", "type": "git",

View File

@ -65,7 +65,7 @@ export class AdminEditNebComponent implements OnInit, OnDestroy {
this.nebApi.getConfigurations().then(configs => { this.nebApi.getConfigurations().then(configs => {
const handledTypes: string[] = []; const handledTypes: string[] = [];
for (const config of configs) { for (const config of configs) {
if (config.id == nebId) { if (config.id === nebId) {
this.nebConfig = config; this.nebConfig = config;
} else { } else {
for (const type of config.integrations) { for (const type of config.integrations) {