From e904dbbd3ffde16123fd55a64b7b1196f0bc2fe9 Mon Sep 17 00:00:00 2001 From: tequ Date: Thu, 9 Apr 2026 14:33:59 +0900 Subject: [PATCH 01/11] Update @biomejs/biome to 2.4.0 (additional .astro support) --- biome.jsonc | 7 +- package-lock.json | 72 +++++++++---------- package.json | 2 +- src/components/CookieConsent.astro | 3 +- src/components/DocsMobileMenuToggle.astro | 15 ++-- src/components/DocsPageSidebar.astro | 11 ++- src/components/DocsSidebar.astro | 13 ++-- src/components/DocsTwoColumnContent.astro | 10 +-- src/components/EcosystemButton.astro | 5 +- src/components/Footer.astro | 21 ++---- src/components/PageSection.astro | 87 ++++++++++++----------- src/layouts/BaseLayout.astro | 31 ++++---- src/layouts/DocsLayout.astro | 29 ++++---- src/layouts/IndexLayout.astro | 11 +-- src/layouts/PageLayout.astro | 7 +- src/pages/fraud-report.astro | 15 ++-- src/plugins/remarkGlobalReferences.ts | 2 + 17 files changed, 168 insertions(+), 173 deletions(-) diff --git a/biome.jsonc b/biome.jsonc index 27b116e..cbfbd45 100644 --- a/biome.jsonc +++ b/biome.jsonc @@ -1,12 +1,12 @@ { - "$schema": "https://biomejs.dev/schemas/2.3.3/schema.json", + "$schema": "https://biomejs.dev/schemas/2.4.10/schema.json", "vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false }, "files": { - "includes": ["**", "!dist"], + "includes": ["**", "!dist", "!.astro"], "ignoreUnknown": false }, "formatter": { @@ -26,7 +26,8 @@ }, "correctness": { "noUnusedImports": "off" - } + }, + "a11y": "off" // TODO: Enable a11y rules for astro } }, "html": { diff --git a/package-lock.json b/package-lock.json index 1c7c936..179d16e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,7 +27,7 @@ "vanilla-cookieconsent": "^3.1.0" }, "devDependencies": { - "@biomejs/biome": "^2.3.3" + "@biomejs/biome": "^2.4.10" } }, "node_modules/@altcha/crypto": { @@ -493,9 +493,9 @@ } }, "node_modules/@biomejs/biome": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/@biomejs/biome/-/biome-2.3.3.tgz", - "integrity": "sha512-zn/P1pRBCpDdhi+VNSMnpczOz9DnqzOA2c48K8xgxjDODvi5O8gs3a2H233rck/5HXpkFj6TmyoqVvxirZUnvg==", + "version": "2.4.10", + "resolved": "https://registry.npmjs.org/@biomejs/biome/-/biome-2.4.10.tgz", + "integrity": "sha512-xxA3AphFQ1geij4JTHXv4EeSTda1IFn22ye9LdyVPoJU19fNVl0uzfEuhsfQ4Yue/0FaLs2/ccVi4UDiE7R30w==", "dev": true, "license": "MIT OR Apache-2.0", "bin": { @@ -509,20 +509,20 @@ "url": "https://opencollective.com/biome" }, "optionalDependencies": { - "@biomejs/cli-darwin-arm64": "2.3.3", - "@biomejs/cli-darwin-x64": "2.3.3", - "@biomejs/cli-linux-arm64": "2.3.3", - "@biomejs/cli-linux-arm64-musl": "2.3.3", - "@biomejs/cli-linux-x64": "2.3.3", - "@biomejs/cli-linux-x64-musl": "2.3.3", - "@biomejs/cli-win32-arm64": "2.3.3", - "@biomejs/cli-win32-x64": "2.3.3" + "@biomejs/cli-darwin-arm64": "2.4.10", + "@biomejs/cli-darwin-x64": "2.4.10", + "@biomejs/cli-linux-arm64": "2.4.10", + "@biomejs/cli-linux-arm64-musl": "2.4.10", + "@biomejs/cli-linux-x64": "2.4.10", + "@biomejs/cli-linux-x64-musl": "2.4.10", + "@biomejs/cli-win32-arm64": "2.4.10", + "@biomejs/cli-win32-x64": "2.4.10" } }, "node_modules/@biomejs/cli-darwin-arm64": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-2.3.3.tgz", - "integrity": "sha512-5+JtW6RKmjqL9un0UtHV0ezOslAyYBzyl5ZhYiu7GHesX2x8NCDl6tXYrenv9m7e1RLbkO5E5Kh04kseMtz6lw==", + "version": "2.4.10", + "resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-2.4.10.tgz", + "integrity": "sha512-vuzzI1cWqDVzOMIkYyHbKqp+AkQq4K7k+UCXWpkYcY/HDn1UxdsbsfgtVpa40shem8Kax4TLDLlx8kMAecgqiw==", "cpu": [ "arm64" ], @@ -537,9 +537,9 @@ } }, "node_modules/@biomejs/cli-darwin-x64": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-x64/-/cli-darwin-x64-2.3.3.tgz", - "integrity": "sha512-UPmKRalkHicvIpeccuKqq+/gA2HYV8FUnAEDJnqYBlGlycKqe6xrovWqvWTE4TTNpIFf4UQyuaDzLkN6Kz6tbA==", + "version": "2.4.10", + "resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-x64/-/cli-darwin-x64-2.4.10.tgz", + "integrity": "sha512-14fzASRo+BPotwp7nWULy2W5xeUyFnTaq1V13Etrrxkrih+ez/2QfgFm5Ehtf5vSjtgx/IJycMMpn5kPd5ZNaA==", "cpu": [ "x64" ], @@ -554,9 +554,9 @@ } }, "node_modules/@biomejs/cli-linux-arm64": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64/-/cli-linux-arm64-2.3.3.tgz", - "integrity": "sha512-zeiKwALNB/hax7+LLhCYqhqzlWdTfgE9BGkX2Z8S4VmCYnGFrf2fON/ec6KCos7mra5MDm6fYICsEWN2+HKZhw==", + "version": "2.4.10", + "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64/-/cli-linux-arm64-2.4.10.tgz", + "integrity": "sha512-7MH1CMW5uuxQ/s7FLST63qF8B3Hgu2HRdZ7tA1X1+mk+St4JOuIrqdhIBnnyqeyWJNI+Bww7Es5QZ0wIc1Cmkw==", "cpu": [ "arm64" ], @@ -571,9 +571,9 @@ } }, "node_modules/@biomejs/cli-linux-arm64-musl": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64-musl/-/cli-linux-arm64-musl-2.3.3.tgz", - "integrity": "sha512-KhCDMV+V7Yu72v40ssGJTHuv/j0n7JQ6l0s/c+EMcX5zPYLMLr4XpmI+WXhp4Vfkz0T5Xnh5wbrTBI3f2UTpjQ==", + "version": "2.4.10", + "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64-musl/-/cli-linux-arm64-musl-2.4.10.tgz", + "integrity": "sha512-WrJY6UuiSD/Dh+nwK2qOTu8kdMDlLV3dLMmychIghHPAysWFq1/DGC1pVZx8POE3ZkzKR3PUUnVrtZfMfaJjyQ==", "cpu": [ "arm64" ], @@ -588,9 +588,9 @@ } }, "node_modules/@biomejs/cli-linux-x64": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64/-/cli-linux-x64-2.3.3.tgz", - "integrity": "sha512-05CjPLbvVVU8J6eaO6iSEoA0FXKy2l6ddL+1h/VpiosCmIp3HxRKLOa1hhC1n+D13Z8g9b1DtnglGtM5U3sTag==", + "version": "2.4.10", + "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64/-/cli-linux-x64-2.4.10.tgz", + "integrity": "sha512-tZLvEEi2u9Xu1zAqRjTcpIDGVtldigVvzug2fTuPG0ME/g8/mXpRPcNgLB22bGn6FvLJpHHnqLnwliOu8xjYrg==", "cpu": [ "x64" ], @@ -605,9 +605,9 @@ } }, "node_modules/@biomejs/cli-linux-x64-musl": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64-musl/-/cli-linux-x64-musl-2.3.3.tgz", - "integrity": "sha512-IyqQ+jYzU5MVy9CK5NV0U+NnUMPUAhYMrB/x4QgL/Dl1MqzBVc61bHeyhLnKM6DSEk73/TQYrk/8/QmVHudLdQ==", + "version": "2.4.10", + "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64-musl/-/cli-linux-x64-musl-2.4.10.tgz", + "integrity": "sha512-kDTi3pI6PBN6CiczsWYOyP2zk0IJI08EWEQyDMQWW221rPaaEz6FvjLhnU07KMzLv8q3qSuoB93ua6inSQ55Tw==", "cpu": [ "x64" ], @@ -622,9 +622,9 @@ } }, "node_modules/@biomejs/cli-win32-arm64": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/@biomejs/cli-win32-arm64/-/cli-win32-arm64-2.3.3.tgz", - "integrity": "sha512-NtlLs3pdFqFAQYZjlEHKOwJEn3GEaz7rtR2oCrzaLT2Xt3Cfd55/VvodQ5V+X+KepLa956QJagckJrNL+DmumQ==", + "version": "2.4.10", + "resolved": "https://registry.npmjs.org/@biomejs/cli-win32-arm64/-/cli-win32-arm64-2.4.10.tgz", + "integrity": "sha512-umwQU6qPzH+ISTf/eHyJ/QoQnJs3V9Vpjz2OjZXe9MVBZ7prgGafMy7yYeRGnlmDAn87AKTF3Q6weLoMGpeqdQ==", "cpu": [ "arm64" ], @@ -639,9 +639,9 @@ } }, "node_modules/@biomejs/cli-win32-x64": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/@biomejs/cli-win32-x64/-/cli-win32-x64-2.3.3.tgz", - "integrity": "sha512-klJKPPQvUk9Rlp0Dd56gQw/+Wt6uUprHdHWtbDC93f3Iv+knA2tLWpcYoOZJgPV+9s+RBmYv0DGy4mUlr20esg==", + "version": "2.4.10", + "resolved": "https://registry.npmjs.org/@biomejs/cli-win32-x64/-/cli-win32-x64-2.4.10.tgz", + "integrity": "sha512-aW/JU5GuyH4uxMrNYpoC2kjaHlyJGLgIa3XkhPEZI0uKhZhJZU8BuEyJmvgzSPQNGozBwWjC972RaNdcJ9KyJg==", "cpu": [ "x64" ], diff --git a/package.json b/package.json index 7a501d4..05c0ad5 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,6 @@ "vanilla-cookieconsent": "^3.1.0" }, "devDependencies": { - "@biomejs/biome": "^2.3.3" + "@biomejs/biome": "^2.4.10" } } diff --git a/src/components/CookieConsent.astro b/src/components/CookieConsent.astro index dcf9b4f..faf82f7 100644 --- a/src/components/CookieConsent.astro +++ b/src/components/CookieConsent.astro @@ -1,6 +1,7 @@ --- - import 'vanilla-cookieconsent/dist/cookieconsent.css' +import 'vanilla-cookieconsent/dist/cookieconsent.css' --- +