Browse Source

Run npm lint in CI (#1314)

pull/1317/head
Oscar Hinton 4 years ago committed by GitHub
parent
commit
dca12def8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      .github/workflows/build.yml
  2. 2
      package.json
  3. 4
      src/app/settings/organization-plans.component.ts

4
.github/workflows/build.yml

@ -409,8 +409,8 @@ jobs: @@ -409,8 +409,8 @@ jobs:
- name: Install dependencies
run: npm ci
- name: NPM install
run: npm ci
- name: Run linter
run: npm run lint
- name: NPM build
run: npm run build:bit:cloud

2
package.json

@ -29,7 +29,7 @@ @@ -29,7 +29,7 @@
"dist:bit:selfhost": "npm run build:bit:selfhost:prod",
"deploy": "npm run dist:bit && gh-pages -d build",
"deploy:dev": "npm run dist:bit && gh-pages -d build -r git@github.com:kspearrin/bitwarden-web-dev.git",
"lint": "tslint 'src/**/*.ts' 'bitwarden_license/src/**/*.ts' || true",
"lint": "tslint 'src/**/*.ts' 'bitwarden_license/src/**/*.ts'",
"lint:fix": "tslint 'src/**/*.ts' 'bitwarden_license/src/**/*.ts' --fix"
},
"devDependencies": {

4
src/app/settings/organization-plans.component.ts

@ -282,8 +282,8 @@ export class OrganizationPlansComponent implements OnInit { @@ -282,8 +282,8 @@ export class OrganizationPlansComponent implements OnInit {
};
this.formPromise = doSubmit();
const orgId = await this.formPromise;
this.onSuccess.emit({ organizationId: orgId });
const organizationId = await this.formPromise;
this.onSuccess.emit({ organizationId: organizationId });
} catch (e) {
this.logService.error(e);
}

Loading…
Cancel
Save