Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -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"







Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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) => {
Expand Down Expand Up @@ -132,7 +134,9 @@ export class GithubVersionSwitcher {
{this._defaultBranch}
</option>
{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) => (
<optgroup key={group.name} label={group.name}>
{group.branches.map((branch: string, index: number) => (
Expand Down