Skip to content

Commit d3710cc

Browse files
committed
Update project
1 parent 194123b commit d3710cc

9 files changed

Lines changed: 3946 additions & 2796 deletions

File tree

.eslintrc.cjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
const { defineConfig } = require('eslint-define-config');
33
const { readGitignoreFiles } = require('eslint-gitignore');
44

5+
/// <reference types="@eslint-types/jsdoc" />
6+
/// <reference types="@eslint-types/prettier" />
7+
/// <reference types="@eslint-types/typescript-eslint" />
8+
/// <reference types="@eslint-types/unicorn" />
9+
510
module.exports = defineConfig({
611
ignorePatterns: [
712
...readGitignoreFiles(),
@@ -48,6 +53,10 @@ module.exports = defineConfig({
4853
semi: ['error', 'always'],
4954

5055
'unicorn/consistent-destructuring': 'off',
56+
'unicorn/import-style': [
57+
'error',
58+
{ styles: { 'node:path': { named: true } } },
59+
],
5160
'unicorn/no-null': 'off',
5261
'unicorn/no-useless-switch-case': 'off',
5362
'unicorn/prevent-abbreviations': 'off',

.github/renovate.json5

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": ["config:base", "schedule:nonOfficeHours", "group:allNonMajor"],
3+
"extends": [
4+
"config:best-practices",
5+
"schedule:nonOfficeHours",
6+
"group:allNonMajor",
7+
":prHourlyLimitNone"
8+
],
49
"timezone": "Europe/Berlin",
510
"labels": ["dependencies"],
11+
"lockFileMaintenance": {
12+
"enabled": true
13+
},
614
"reviewersFromCodeOwners": true,
715
"rangeStrategy": "bump",
816
"packageRules": [
@@ -27,12 +35,16 @@
2735
"rangeStrategy": "replace"
2836
},
2937
{
30-
"groupName": "typescript-eslint",
31-
"matchPackagePrefixes": ["@typescript-eslint/"]
38+
"groupName": "eslint",
39+
"matchPackagePrefixes": [
40+
"@typescript-eslint/",
41+
"@eslint-types/",
42+
"eslint"
43+
]
3244
},
3345
{
3446
"groupName": "vitest",
35-
"matchPackageNames": ["@vitest/coverage-v8", "@vitest/ui", "vitest"]
47+
"matchPackagePrefixes": ["@vitest/", "vitest"]
3648
},
3749
{
3850
"groupName": "prettier",
@@ -41,6 +53,10 @@
4153
{
4254
"groupName": "typescript",
4355
"matchPackageNames": ["typescript"]
56+
},
57+
{
58+
"groupName": "doc-dependencies",
59+
"matchPackageNames": ["@algolia/client-search", "vitepress"]
4460
}
4561
],
4662
"vulnerabilityAlerts": {

.github/workflows/ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ jobs:
2424
git config --global core.eol lf
2525
2626
- name: Checkout
27-
uses: actions/checkout@v4
27+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2828

2929
- name: Install pnpm
30-
uses: pnpm/action-setup@v2
30+
uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
3131

3232
- name: Set node version to ${{ matrix.node_version }}
33-
uses: actions/setup-node@v3
33+
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
3434
with:
3535
node-version: ${{ matrix.node_version }}
3636
cache: 'pnpm'
@@ -57,15 +57,15 @@ jobs:
5757
name: 'Lint: node-20, ubuntu-latest'
5858
steps:
5959
- name: Checkout
60-
uses: actions/checkout@v4
60+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
6161
with:
6262
fetch-depth: 0
6363

6464
- name: Install pnpm
65-
uses: pnpm/action-setup@v2
65+
uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
6666

6767
- name: Set node version to 20
68-
uses: actions/setup-node@v3
68+
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
6969
with:
7070
node-version: 20
7171
cache: 'pnpm'
@@ -84,15 +84,15 @@ jobs:
8484
name: 'Audit: node-20, ubuntu-latest'
8585
steps:
8686
- name: Checkout
87-
uses: actions/checkout@v4
87+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
8888
with:
8989
fetch-depth: 0
9090

9191
- name: Install pnpm
92-
uses: pnpm/action-setup@v2
92+
uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
9393

9494
- name: Set node version to 20
95-
uses: actions/setup-node@v3
95+
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
9696
with:
9797
node-version: 20
9898
cache: 'pnpm'

.github/workflows/docs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
1616
with:
1717
fetch-depth: 0
1818

1919
- name: Install pnpm
20-
uses: pnpm/action-setup@v2
20+
uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
2121

2222
- name: Setup Node.js
23-
uses: actions/setup-node@v3
23+
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
2424
with:
2525
node-version: 20
2626
cache: 'pnpm'
@@ -32,7 +32,7 @@ jobs:
3232
run: pnpm run docs:build
3333

3434
- name: Deploy to GitHub Pages
35-
uses: crazy-max/ghaction-github-pages@v4
35+
uses: crazy-max/ghaction-github-pages@c05ee637ec73429400a359430db8e5629f3f2564 # v4.0.0
3636
with:
3737
target_branch: gh-pages
3838
build_dir: docs/.vitepress/dist

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-manager-strict=false

docs/.vitepress/theme/styles/vars.css

Lines changed: 37 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@
99

1010
:root {
1111
--vp-c-brand: #56332b;
12+
--vp-c-brand-1: #56332b;
1213
--vp-c-brand-light: #ccac8d;
1314
--vp-c-brand-lighter: #efcca3;
15+
--vp-c-brand-lightest: #efcca3;
1416
--vp-c-brand-dark: #56332b;
1517
--vp-c-brand-darker: #442823;
1618
--vp-c-brand-dimm: rgba(100, 108, 255, 0.08);
@@ -21,14 +23,14 @@
2123
* -------------------------------------------------------------------------- */
2224

2325
:root {
24-
--vp-button-brand-border: var(--vp-c-brand);
25-
--vp-button-brand-text: var(--vp-c-text-dark-1);
26-
--vp-button-brand-bg: var(--vp-c-brand-darker);
27-
--vp-button-brand-hover-border: var(--vp-c-brand-dark);
28-
--vp-button-brand-hover-text: var(--vp-c-text-dark-1);
29-
--vp-button-brand-hover-bg: var(--vp-c-brand-dark);
26+
--vp-button-brand-border: var(--vp-c-brand-light);
27+
--vp-button-brand-text: var(--vp-c-white);
28+
--vp-button-brand-bg: var(--vp-c-brand);
29+
--vp-button-brand-hover-border: var(--vp-c-brand-light);
30+
--vp-button-brand-hover-text: var(--vp-c-white);
31+
--vp-button-brand-hover-bg: var(--vp-c-brand-light);
3032
--vp-button-brand-active-border: var(--vp-c-brand-light);
31-
--vp-button-brand-active-text: var(--vp-c-text-dark-1);
33+
--vp-button-brand-active-text: var(--vp-c-white);
3234
--vp-button-brand-active-bg: var(--vp-button-brand-bg);
3335
}
3436

@@ -75,21 +77,39 @@
7577
}
7678

7779
.dark {
80+
--vp-c-brand-1: #ccac8d;
7881
--vp-custom-block-tip-border: var(--vp-c-brand);
79-
--vp-custom-block-tip-text: var(--vp-c-brand-lighter);
82+
--vp-custom-block-tip-text: var(--vp-c-brand-lightest);
8083
--vp-custom-block-tip-bg: var(--vp-c-brand-dimm);
8184
}
8285

86+
/**
87+
* VitePress: Custom fix
88+
* -------------------------------------------------------------------------- */
89+
90+
/*
91+
Use lighter colors for links in dark mode for a11y.
92+
Also specify some classes twice to have higher specificity
93+
over scoped class data attribute.
94+
*/
8395
.dark .vp-doc a,
84-
.dark .edit-link-button,
85-
.dark .title,
86-
.dark .link.active,
87-
.dark .link.active .link-text,
88-
.dark .VPNavBarMenuLink.active {
89-
color: var(--vp-c-brand-light);
96+
.dark .vp-doc a > code,
97+
.dark .VPNavBarMenuLink.VPNavBarMenuLink:hover,
98+
.dark .VPNavBarMenuLink.VPNavBarMenuLink.active,
99+
.dark .link.link:hover,
100+
.dark .link.link.active,
101+
.dark .edit-link-button.edit-link-button,
102+
.dark .pager-link .title {
103+
color: var(--vp-c-brand-lighter);
90104
}
91105

92-
.dark .link:hover,
93-
.dark .VPNavBarMenuLink:hover {
94-
color: var(--vp-c-brand-lighter);
106+
.dark .vp-doc a:hover,
107+
.dark .vp-doc a > code:hover {
108+
color: var(--vp-c-brand-lightest);
109+
opacity: 1;
110+
}
111+
112+
/* Transition by color instead of opacity */
113+
.dark .vp-doc .custom-block a {
114+
transition: color 0.25s;
95115
}

package.json

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -69,34 +69,38 @@
6969
"pug-lexer": "^5.0.1"
7070
},
7171
"devDependencies": {
72-
"@types/node": "~20.6.4",
73-
"@typescript-eslint/eslint-plugin": "~6.7.2",
74-
"@typescript-eslint/parser": "~6.7.2",
75-
"@vitest/coverage-v8": "~0.34.5",
72+
"@eslint-types/jsdoc": "~48.2.2",
73+
"@eslint-types/prettier": "~5.1.3",
74+
"@eslint-types/typescript-eslint": "~7.5.0",
75+
"@eslint-types/unicorn": "~52.0.0",
76+
"@types/node": "~20.12.7",
77+
"@typescript-eslint/eslint-plugin": "~7.7.0",
78+
"@typescript-eslint/parser": "~7.7.0",
79+
"@vitest/coverage-v8": "~1.5.0",
7680
"benchmark": "~2.1.4",
77-
"eslint": "~8.50.0",
78-
"eslint-config-prettier": "~9.0.0",
79-
"eslint-define-config": "~1.23.0",
81+
"eslint": "~8.57.0",
82+
"eslint-config-prettier": "~9.1.0",
83+
"eslint-define-config": "~2.1.0",
8084
"eslint-gitignore": "~0.1.0",
8185
"eslint-plugin-inclusive-language": "~2.2.1",
82-
"eslint-plugin-jsdoc": "~46.8.2",
83-
"eslint-plugin-prettier": "~5.0.0",
86+
"eslint-plugin-jsdoc": "~48.2.3",
87+
"eslint-plugin-prettier": "~5.1.3",
8488
"eslint-plugin-spellcheck": "~0.0.20",
85-
"eslint-plugin-unicorn": "~48.0.1",
89+
"eslint-plugin-unicorn": "~52.0.0",
8690
"npm-run-all": "~4.1.5",
87-
"prettier": "3.0.3",
88-
"prettier-plugin-organize-imports": "~3.2.3",
89-
"rimraf": "~5.0.1",
90-
"tsup": "~7.2.0",
91-
"typescript": "~5.2.2",
92-
"vite": "~4.4.9",
93-
"vitepress": "1.0.0-rc.17",
94-
"vitest": "~0.34.5"
91+
"prettier": "3.2.5",
92+
"prettier-plugin-organize-imports": "~3.2.4",
93+
"rimraf": "~5.0.5",
94+
"tsup": "~8.0.2",
95+
"typescript": "~5.4.5",
96+
"vite": "~5.2.10",
97+
"vitepress": "~1.1.3",
98+
"vitest": "~1.5.0"
9599
},
96100
"peerDependencies": {
97101
"prettier": "^3.0.0"
98102
},
99-
"packageManager": "pnpm@8.7.6",
103+
"packageManager": "pnpm@9.0.5",
100104
"engines": {
101105
"node": ">=18.0.0",
102106
"npm": ">=9.0.0"

0 commit comments

Comments
 (0)