From 51cc207f0b0e7afd8b27cff46d7e8e07c323535b Mon Sep 17 00:00:00 2001 From: Christian Oliff Date: Tue, 16 Sep 2025 14:52:31 +0900 Subject: [PATCH] Update htmlhint to 1.7.0 and improve config Upgraded htmlhint from 1.6.3 to 1.7.0 in package.json and package-lock.json. Enhanced .htmlhintrc with new rules: 'form-method-require' and 'link-rel-canonical-require'. Updated .cspell.json, .npmrc, and improved consistency in GitHub workflow and dependabot configuration files. --- .cspell.json | 1 + .github/dependabot.yml | 20 ++++++++++++++------ .github/workflows/codeql-analysis.yml | 4 ++-- .github/workflows/super-linter.yml | 2 +- .htmlhintrc | 2 ++ .npmrc | 1 - package-lock.json | 10 +++++----- package.json | 2 +- 8 files changed, 26 insertions(+), 16 deletions(-) diff --git a/.cspell.json b/.cspell.json index 4426e68..cb852bd 100644 --- a/.cspell.json +++ b/.cspell.json @@ -1,6 +1,7 @@ { "version": "0.2", "words": [ + "coliff", "dbaeumer", "fediverse", "Merbivore", diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 61bf933..56095fa 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,7 +1,7 @@ version: 2 updates: - package-ecosystem: npm - directory: "/" + directory: '/' schedule: interval: monthly versioning-strategy: increase @@ -9,11 +9,19 @@ updates: dependencies: applies-to: version-updates patterns: - - "*" + - '*' update-types: - - "minor" - - "patch" + - 'minor' + - 'patch' - package-ecosystem: github-actions - directory: "/" + directory: '/' schedule: - interval: weekly + interval: monthly + groups: + dependencies: + applies-to: version-updates + patterns: + - '*' + update-types: + - 'minor' + - 'patch' diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index b44e72a..4da5565 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -27,10 +27,10 @@ jobs: persist-credentials: false - name: Initialize CodeQL - uses: github/codeql-action/init@f1f6e5f6af878fb37288ce1c627459e94dbf7d01 # v3.30.1 + uses: github/codeql-action/init@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3 with: languages: 'javascript' queries: +security-and-quality - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@f1f6e5f6af878fb37288ce1c627459e94dbf7d01 # v3.30.1 + uses: github/codeql-action/analyze@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3 diff --git a/.github/workflows/super-linter.yml b/.github/workflows/super-linter.yml index 930b582..be955e7 100644 --- a/.github/workflows/super-linter.yml +++ b/.github/workflows/super-linter.yml @@ -30,7 +30,7 @@ jobs: persist-credentials: false - name: Super-linter - uses: super-linter/super-linter/slim@ffde3b2b33b745cb612d787f669ef9442b1339a6 # v8.1.0.1.0 + uses: super-linter/super-linter/slim@ffde3b2b33b745cb612d787f669ef9442b1339a6 # v8.1.0 env: DEFAULT_BRANCH: main FILTER_REGEX_EXCLUDE: '/test/' diff --git a/.htmlhintrc b/.htmlhintrc index 32b7fd3..841d31c 100644 --- a/.htmlhintrc +++ b/.htmlhintrc @@ -12,6 +12,7 @@ "button-type-require": true, "doctype-first": false, "doctype-html5": true, + "form-method-require": true, "head-script-disabled": false, "h1-require": true, "html-lang-require": true, @@ -20,6 +21,7 @@ "inline-script-disabled": false, "inline-style-disabled": false, "input-requires-label": false, + "link-rel-canonical-require": true, "main-require": true, "meta-charset-require": true, "meta-description-require": true, diff --git a/.npmrc b/.npmrc index 11acd25..f4e1e4a 100644 --- a/.npmrc +++ b/.npmrc @@ -1,2 +1 @@ -lockfile-version = 3 registry = 'https://registry.npmjs.org/' diff --git a/package-lock.json b/package-lock.json index 75fd074..b93c4c8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "ace-builds": "^1.35.0", "astro": "^5.13.5", "bootstrap": "^5.3.8", - "htmlhint": "^1.6.3" + "htmlhint": "^1.7.0" }, "devDependencies": { "@astrojs/check": "^0.9.4", @@ -4248,9 +4248,9 @@ } }, "node_modules/htmlhint": { - "version": "1.6.3", - "resolved": "https://registry.npmjs.org/htmlhint/-/htmlhint-1.6.3.tgz", - "integrity": "sha512-AVmlXD75nRVcb+a+6PZxUgSFIR67KbzrwooCzyx0lV5A17EJioxtOUuM1k9z+xXjzhZt0z3vntcu5JPSH/XHxA==", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/htmlhint/-/htmlhint-1.7.0.tgz", + "integrity": "sha512-aD7ogqSPBMajoAiKhL+uVcNLxiDGm4gaMrrRuuDIz9s0RQI7tlnildASYRIwPJhZ6u/8k++ynyrGzPAQVoktzg==", "license": "MIT", "dependencies": { "async": "3.2.6", @@ -4266,7 +4266,7 @@ "htmlhint": "bin/htmlhint" }, "engines": { - "node": ">=20" + "node": ">=18" }, "funding": { "type": "Open Collective", diff --git a/package.json b/package.json index a004018..6c6c76f 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "ace-builds": "^1.35.0", "astro": "^5.13.5", "bootstrap": "^5.3.8", - "htmlhint": "^1.6.3" + "htmlhint": "^1.7.0" }, "devDependencies": { "@astrojs/check": "^0.9.4",