mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
Run npm lint in CI (#1314)
This commit is contained in:
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@@ -409,8 +409,8 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
- name: NPM install
|
- name: Run linter
|
||||||
run: npm ci
|
run: npm run lint
|
||||||
|
|
||||||
- name: NPM build
|
- name: NPM build
|
||||||
run: npm run build:bit:cloud
|
run: npm run build:bit:cloud
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
"dist:bit:selfhost": "npm run build:bit:selfhost:prod",
|
"dist:bit:selfhost": "npm run build:bit:selfhost:prod",
|
||||||
"deploy": "npm run dist:bit && gh-pages -d build",
|
"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",
|
"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"
|
"lint:fix": "tslint 'src/**/*.ts' 'bitwarden_license/src/**/*.ts' --fix"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -282,8 +282,8 @@ export class OrganizationPlansComponent implements OnInit {
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.formPromise = doSubmit();
|
this.formPromise = doSubmit();
|
||||||
const orgId = await this.formPromise;
|
const organizationId = await this.formPromise;
|
||||||
this.onSuccess.emit({ organizationId: orgId });
|
this.onSuccess.emit({ organizationId: organizationId });
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.logService.error(e);
|
this.logService.error(e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user