From 676104a4e7a350681b1ce284641e93fea7ef56eb Mon Sep 17 00:00:00 2001 From: NicolasMerget Date: Mon, 1 Aug 2022 14:36:57 +0200 Subject: [PATCH] fix: use concurrently for pre-commit --- .husky/pre-commit | 13 +++++++------ .../github-version-switcher.tsx | 4 ++++ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 177696d99..f1ebcdbd1 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -2,10 +2,11 @@ . "$(dirname "$0")/_/husky.sh" npx --yes pretty-quick --staged -node ./scripts/cypress-component-check.js -node ./scripts/angular-module-component-check.js -npm run lint:eslint -npm run lint:stylelint -npm run lint:markdownlint -npx validate-branch-name +npx concurrently "node ./scripts/cypress-component-check.js" "node ./scripts/angular-module-component-check.js" "npm run lint:eslint" "npm run lint:stylelint" "npm run lint:markdownlint" "npx validate-branch-name" + + + + + + diff --git a/packages/db-ui-elements-stencil/src/components/development/github-version-switcher/github-version-switcher.tsx b/packages/db-ui-elements-stencil/src/components/development/github-version-switcher/github-version-switcher.tsx index 73c82484d..8f3a0a09a 100644 --- a/packages/db-ui-elements-stencil/src/components/development/github-version-switcher/github-version-switcher.tsx +++ b/packages/db-ui-elements-stencil/src/components/development/github-version-switcher/github-version-switcher.tsx @@ -53,6 +53,7 @@ export class GithubVersionSwitcher { } }; + // eslint-disable-next-line @typescript-eslint/no-explicit-any private setBranches = (data: any[]) => { const branchNames = data .map((branch) => branch.name) @@ -71,6 +72,7 @@ export class GithubVersionSwitcher { this.setCurrentBranch(branchNames); }; + // eslint-disable-next-line @typescript-eslint/no-explicit-any private setTags = (data: any[]) => { const tagNames = data.map((tag) => tag.name); tagNames.forEach((tag: string) => { @@ -132,7 +134,9 @@ export class GithubVersionSwitcher { {this._defaultBranch} {this.groups + // eslint-disable-next-line @typescript-eslint/no-explicit-any .filter((group: any) => group.branches?.length > 0) + // eslint-disable-next-line @typescript-eslint/no-explicit-any .map((group: any) => ( {group.branches.map((branch: string, index: number) => (