From 17223dab762664f856ef2a53a19c275c771aebd9 Mon Sep 17 00:00:00 2001
From: SpotlightOn <265342703+SpotlightOn@users.noreply.github.com>
Date: Thu, 5 Nov 2026 12:05:24 +0100
Subject: [PATCH] Add husky and fix linter errors
---
.github/workflows/codeql.yml | 2 +-
.husky/pre-commit | 1 +
README.md | 2 +-
biome.jsonc | 2 +-
package.json | 8 +-
pnpm-lock.yaml | 39 +++-
src/content/blog/custom-icon-sets/index.md | 46 ++---
src/content/blog/defs-vs-symbol-sprites.md | 66 +++----
src/content/blog/optimizing-svg-files.md | 212 +++++++++++----------
src/content/blog/svg-intro.md | 22 ++-
src/content/blog/welcome.md | 8 +-
11 files changed, 225 insertions(+), 183 deletions(-)
create mode 100644 .husky/pre-commit
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
index 5d06a77..a6bc437 100644
--- a/.github/workflows/codeql.yml
+++ b/.github/workflows/codeql.yml
@@ -37,4 +37,4 @@ jobs:
uses: github/codeql-action/autobuild@v3
- name: Perform CodeQL analysis
- uses: github/codeql-action/analyze@v3
\ No newline at end of file
+ uses: github/codeql-action/analyze@v3
diff --git a/.husky/pre-commit b/.husky/pre-commit
new file mode 100644
index 0000000..5ee7abd
--- /dev/null
+++ b/.husky/pre-commit
@@ -0,0 +1 @@
+pnpm exec lint-staged
diff --git a/README.md b/README.md
index 4f606be..47a32b2 100644
--- a/README.md
+++ b/README.md
@@ -15,4 +15,4 @@ pnpm preview # preview the static build
Any push to `main` triggers `.github/workflows/deploy.yml`, which builds the static site and deploys it to GitHub Pages (source: GitHub Actions).
-The site is served at .
\ No newline at end of file
+The site is served at .
diff --git a/biome.jsonc b/biome.jsonc
index 6502136..7f9725f 100644
--- a/biome.jsonc
+++ b/biome.jsonc
@@ -1,5 +1,5 @@
{
- "$schema": "https://biomejs.dev/schemas/2.5.13/schema.json",
+ "$schema": "https://biomejs.dev/schemas/2.6.4/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
diff --git a/package.json b/package.json
index 885327c..9f01d3b 100644
--- a/package.json
+++ b/package.json
@@ -12,7 +12,8 @@
"check": "astro check",
"lint": "biome ci .",
"preview": "astro preview",
- "astro": "astro"
+ "astro": "astro",
+ "prepare": "husky"
},
"dependencies": {
"@astrojs/sitemap": "^3.7.4",
@@ -25,6 +26,11 @@
"devDependencies": {
"@astrojs/check": "^0.9.12",
"@biomejs/biome": "^2.6.4",
+ "husky": "^9.1.7",
+ "lint-staged": "^17.6.0",
"typescript": "^6.0.3"
+ },
+ "lint-staged": {
+ "*": "biome check --write --no-errors-on-unmatched --files-ignore-unknown=true"
}
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index e26ec2b..f8d0c94 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -24,6 +24,12 @@ importers:
'@biomejs/biome':
specifier: ^2.6.4
version: 2.6.4
+ husky:
+ specifier: ^9.1.7
+ version: 9.1.7
+ lint-staged:
+ specifier: ^17.6.0
+ version: 17.6.0
typescript:
specifier: ^6.0.3
version: 6.0.3
@@ -1141,6 +1147,11 @@ packages:
http-cache-semantics@4.3.0:
resolution: {integrity: sha512-M5t5LlJpS1UHMjvwRQVdFHvPISGeLAxNcrWuJkeGh0KxsqCHZ1O3NXZU/8x7cD0BDcGW8kapxMKTvwlqrNkHkA==}
+ husky@9.1.7:
+ resolution: {integrity: sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==}
+ engines: {node: '>=18'}
+ hasBin: true
+
iron-webcrypto@1.2.1:
resolution: {integrity: sha512-feOM6FaSr6rEABp/eDfVseKyTMDt+KGpeB35SkVn9Tyn0CqvVsY3EwI0v5i8nMHyJnzCIQf7nsy3p41TPkJZhg==}
@@ -1240,6 +1251,11 @@ packages:
resolution: {integrity: sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==}
engines: {node: '>= 12.0.0'}
+ lint-staged@17.6.0:
+ resolution: {integrity: sha512-nOhBfYkZEwkFtNzD5pK9s9LkcWoxJ+whLzEnhqi9nl7zTB5n7tg8+9iYgMGx2Wm3VlLu8cbNj0RACzY+nWi5iQ==}
+ engines: {node: '>=22.22.1'}
+ hasBin: true
+
lru-cache@11.5.3:
resolution: {integrity: sha512-U4N8FgzmWxc8k1VH8Kr6lQg18U7Fjvby6wXHVRX/ZZ7IwWbRMgrRbP0Wrb5q5NVinryp4SQampHKdvtecItxUg==}
engines: {node: 20 || >=22}
@@ -1455,6 +1471,10 @@ packages:
std-env@4.3.0:
resolution: {integrity: sha512-OtU/EgQ1kIm5KwqQpBC6ZEMXrZRui11w8zgfTWp8cdO9B8OaPsbA8bTHO2P+HNo1VlUTGMVBwPhydu6poeXiag==}
+ string-argv@0.3.2:
+ resolution: {integrity: sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==}
+ engines: {node: '>=0.6.19'}
+
string-width@7.2.0:
resolution: {integrity: sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==}
engines: {node: '>=18'}
@@ -1499,9 +1519,6 @@ packages:
trough@2.2.0:
resolution: {integrity: sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw==}
- tslib@2.8.1:
- resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==}
-
tslib@2.9.1:
resolution: {integrity: sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==}
@@ -2106,7 +2123,7 @@ snapshots:
'@emnapi/runtime@1.11.3':
dependencies:
- tslib: 2.8.1
+ tslib: 2.9.1
'@emnapi/wasi-threads@1.2.2':
dependencies:
@@ -2852,6 +2869,8 @@ snapshots:
http-cache-semantics@4.3.0: {}
+ husky@9.1.7: {}
+
iron-webcrypto@1.2.1: {}
is-docker@4.0.0: {}
@@ -2915,6 +2934,14 @@ snapshots:
lightningcss-win32-arm64-msvc: 1.33.0
lightningcss-win32-x64-msvc: 1.33.0
+ lint-staged@17.6.0:
+ dependencies:
+ picomatch: 4.0.7
+ string-argv: 0.3.2
+ tinyexec: 1.3.1
+ optionalDependencies:
+ yaml: 2.9.1
+
lru-cache@11.5.3: {}
magic-string@1.4.5:
@@ -3166,6 +3193,8 @@ snapshots:
std-env@4.3.0: {}
+ string-argv@0.3.2: {}
+
string-width@7.2.0:
dependencies:
emoji-regex: 10.6.0
@@ -3213,8 +3242,6 @@ snapshots:
trough@2.2.0: {}
- tslib@2.8.1: {}
-
tslib@2.9.1: {}
typesafe-path@0.2.2: {}
diff --git a/src/content/blog/custom-icon-sets/index.md b/src/content/blog/custom-icon-sets/index.md
index 1c5fdb5..68907f0 100644
--- a/src/content/blog/custom-icon-sets/index.md
+++ b/src/content/blog/custom-icon-sets/index.md
@@ -1,12 +1,14 @@
---
+
title: Create Your Own Icon Sets for the SVG Forge Icon Manager
pubDate: 2026-09-15
tags:
- - tips
- - svg
+- tips
+- svg
+
---
-The **SVG Forge Icon Manager** is a Gutenberg plugin for WordPress: an "SVG Icon" block inserts icons via `