Skip to content

Commit

Permalink
Update project
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Apr 22, 2024
1 parent 194123b commit d3710cc
Show file tree
Hide file tree
Showing 9 changed files with 3,946 additions and 2,796 deletions.
9 changes: 9 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
const { defineConfig } = require('eslint-define-config');
const { readGitignoreFiles } = require('eslint-gitignore');

/// <reference types="@eslint-types/jsdoc" />
/// <reference types="@eslint-types/prettier" />
/// <reference types="@eslint-types/typescript-eslint" />
/// <reference types="@eslint-types/unicorn" />

module.exports = defineConfig({
ignorePatterns: [
...readGitignoreFiles(),
Expand Down Expand Up @@ -48,6 +53,10 @@ module.exports = defineConfig({
semi: ['error', 'always'],

'unicorn/consistent-destructuring': 'off',
'unicorn/import-style': [
'error',
{ styles: { 'node:path': { named: true } } },
],
'unicorn/no-null': 'off',
'unicorn/no-useless-switch-case': 'off',
'unicorn/prevent-abbreviations': 'off',
Expand Down
24 changes: 20 additions & 4 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:base", "schedule:nonOfficeHours", "group:allNonMajor"],
"extends": [
"config:best-practices",
"schedule:nonOfficeHours",
"group:allNonMajor",
":prHourlyLimitNone"
],
"timezone": "Europe/Berlin",
"labels": ["dependencies"],
"lockFileMaintenance": {
"enabled": true
},
"reviewersFromCodeOwners": true,
"rangeStrategy": "bump",
"packageRules": [
Expand All @@ -27,12 +35,16 @@
"rangeStrategy": "replace"
},
{
"groupName": "typescript-eslint",
"matchPackagePrefixes": ["@typescript-eslint/"]
"groupName": "eslint",
"matchPackagePrefixes": [
"@typescript-eslint/",
"@eslint-types/",
"eslint"
]
},
{
"groupName": "vitest",
"matchPackageNames": ["@vitest/coverage-v8", "@vitest/ui", "vitest"]
"matchPackagePrefixes": ["@vitest/", "vitest"]
},
{
"groupName": "prettier",
Expand All @@ -41,6 +53,10 @@
{
"groupName": "typescript",
"matchPackageNames": ["typescript"]
},
{
"groupName": "doc-dependencies",
"matchPackageNames": ["@algolia/client-search", "vitepress"]
}
],
"vulnerabilityAlerts": {
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ jobs:
git config --global core.eol lf
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

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

- name: Set node version to ${{ matrix.node_version }}
uses: actions/setup-node@v3
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ matrix.node_version }}
cache: 'pnpm'
Expand All @@ -57,15 +57,15 @@ jobs:
name: 'Lint: node-20, ubuntu-latest'
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0

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

- name: Set node version to 20
uses: actions/setup-node@v3
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 20
cache: 'pnpm'
Expand All @@ -84,15 +84,15 @@ jobs:
name: 'Audit: node-20, ubuntu-latest'
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0

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

- name: Set node version to 20
uses: actions/setup-node@v3
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 20
cache: 'pnpm'
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0

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

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 20
cache: 'pnpm'
Expand All @@ -32,7 +32,7 @@ jobs:
run: pnpm run docs:build

- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v4
uses: crazy-max/ghaction-github-pages@c05ee637ec73429400a359430db8e5629f3f2564 # v4.0.0
with:
target_branch: gh-pages
build_dir: docs/.vitepress/dist
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-manager-strict=false
54 changes: 37 additions & 17 deletions docs/.vitepress/theme/styles/vars.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@

:root {
--vp-c-brand: #56332b;
--vp-c-brand-1: #56332b;
--vp-c-brand-light: #ccac8d;
--vp-c-brand-lighter: #efcca3;
--vp-c-brand-lightest: #efcca3;
--vp-c-brand-dark: #56332b;
--vp-c-brand-darker: #442823;
--vp-c-brand-dimm: rgba(100, 108, 255, 0.08);
Expand All @@ -21,14 +23,14 @@
* -------------------------------------------------------------------------- */

:root {
--vp-button-brand-border: var(--vp-c-brand);
--vp-button-brand-text: var(--vp-c-text-dark-1);
--vp-button-brand-bg: var(--vp-c-brand-darker);
--vp-button-brand-hover-border: var(--vp-c-brand-dark);
--vp-button-brand-hover-text: var(--vp-c-text-dark-1);
--vp-button-brand-hover-bg: var(--vp-c-brand-dark);
--vp-button-brand-border: var(--vp-c-brand-light);
--vp-button-brand-text: var(--vp-c-white);
--vp-button-brand-bg: var(--vp-c-brand);
--vp-button-brand-hover-border: var(--vp-c-brand-light);
--vp-button-brand-hover-text: var(--vp-c-white);
--vp-button-brand-hover-bg: var(--vp-c-brand-light);
--vp-button-brand-active-border: var(--vp-c-brand-light);
--vp-button-brand-active-text: var(--vp-c-text-dark-1);
--vp-button-brand-active-text: var(--vp-c-white);
--vp-button-brand-active-bg: var(--vp-button-brand-bg);
}

Expand Down Expand Up @@ -75,21 +77,39 @@
}

.dark {
--vp-c-brand-1: #ccac8d;
--vp-custom-block-tip-border: var(--vp-c-brand);
--vp-custom-block-tip-text: var(--vp-c-brand-lighter);
--vp-custom-block-tip-text: var(--vp-c-brand-lightest);
--vp-custom-block-tip-bg: var(--vp-c-brand-dimm);
}

/**
* VitePress: Custom fix
* -------------------------------------------------------------------------- */

/*
Use lighter colors for links in dark mode for a11y.
Also specify some classes twice to have higher specificity
over scoped class data attribute.
*/
.dark .vp-doc a,
.dark .edit-link-button,
.dark .title,
.dark .link.active,
.dark .link.active .link-text,
.dark .VPNavBarMenuLink.active {
color: var(--vp-c-brand-light);
.dark .vp-doc a > code,
.dark .VPNavBarMenuLink.VPNavBarMenuLink:hover,
.dark .VPNavBarMenuLink.VPNavBarMenuLink.active,
.dark .link.link:hover,
.dark .link.link.active,
.dark .edit-link-button.edit-link-button,
.dark .pager-link .title {
color: var(--vp-c-brand-lighter);
}

.dark .link:hover,
.dark .VPNavBarMenuLink:hover {
color: var(--vp-c-brand-lighter);
.dark .vp-doc a:hover,
.dark .vp-doc a > code:hover {
color: var(--vp-c-brand-lightest);
opacity: 1;
}

/* Transition by color instead of opacity */
.dark .vp-doc .custom-block a {
transition: color 0.25s;
}
42 changes: 23 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,34 +69,38 @@
"pug-lexer": "^5.0.1"
},
"devDependencies": {
"@types/node": "~20.6.4",
"@typescript-eslint/eslint-plugin": "~6.7.2",
"@typescript-eslint/parser": "~6.7.2",
"@vitest/coverage-v8": "~0.34.5",
"@eslint-types/jsdoc": "~48.2.2",
"@eslint-types/prettier": "~5.1.3",
"@eslint-types/typescript-eslint": "~7.5.0",
"@eslint-types/unicorn": "~52.0.0",
"@types/node": "~20.12.7",
"@typescript-eslint/eslint-plugin": "~7.7.0",
"@typescript-eslint/parser": "~7.7.0",
"@vitest/coverage-v8": "~1.5.0",
"benchmark": "~2.1.4",
"eslint": "~8.50.0",
"eslint-config-prettier": "~9.0.0",
"eslint-define-config": "~1.23.0",
"eslint": "~8.57.0",
"eslint-config-prettier": "~9.1.0",
"eslint-define-config": "~2.1.0",
"eslint-gitignore": "~0.1.0",
"eslint-plugin-inclusive-language": "~2.2.1",
"eslint-plugin-jsdoc": "~46.8.2",
"eslint-plugin-prettier": "~5.0.0",
"eslint-plugin-jsdoc": "~48.2.3",
"eslint-plugin-prettier": "~5.1.3",
"eslint-plugin-spellcheck": "~0.0.20",
"eslint-plugin-unicorn": "~48.0.1",
"eslint-plugin-unicorn": "~52.0.0",
"npm-run-all": "~4.1.5",
"prettier": "3.0.3",
"prettier-plugin-organize-imports": "~3.2.3",
"rimraf": "~5.0.1",
"tsup": "~7.2.0",
"typescript": "~5.2.2",
"vite": "~4.4.9",
"vitepress": "1.0.0-rc.17",
"vitest": "~0.34.5"
"prettier": "3.2.5",
"prettier-plugin-organize-imports": "~3.2.4",
"rimraf": "~5.0.5",
"tsup": "~8.0.2",
"typescript": "~5.4.5",
"vite": "~5.2.10",
"vitepress": "~1.1.3",
"vitest": "~1.5.0"
},
"peerDependencies": {
"prettier": "^3.0.0"
},
"packageManager": "pnpm@8.7.6",
"packageManager": "pnpm@9.0.5",
"engines": {
"node": ">=18.0.0",
"npm": ">=9.0.0"
Expand Down
Loading

0 comments on commit d3710cc

Please sign in to comment.