Skip to content

Commit

Permalink
migrate config
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Apr 8, 2024
1 parent db4f46f commit e0ed0a4
Show file tree
Hide file tree
Showing 6 changed files with 284 additions and 215 deletions.
201 changes: 0 additions & 201 deletions .eslintrc.cjs

This file was deleted.

4 changes: 4 additions & 0 deletions docs/.vitepress/versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ function readOtherLatestReleaseTagNames(): string[] {
const majorVersion = semver.major(tag);
return majorVersion >= 6 && majorVersion !== currentMajorVersion;
})
// eslint-disable-next-line unicorn/no-array-reduce
.reduce<Record<number, string>>((latestTagByMajor, tag) => {
const majorVersion = semver.major(tag);

Expand Down Expand Up @@ -50,12 +51,15 @@ export const versionBannerInfix: string | null = (() => {
if (deployContext === 'production') {
return null;
}

if (isReleaseBranch) {
return '"an old version"';
}

if (branchName === 'next') {
return '"the next (unreleased) version"';
}

return '"a development version"';
})();

Expand Down
Loading

0 comments on commit e0ed0a4

Please sign in to comment.