From 81b2c4c2fef8c3dcdd4e4d461eb1e2d1e9c43420 Mon Sep 17 00:00:00 2001 From: Christian Oliff Date: Thu, 20 Nov 2025 01:06:30 +0900 Subject: [PATCH] Improve linting, spellcheck, and HTML validation Updated .cspell.json to ignore README.md and index.html, and enhanced .htmlhintrc with stricter validation rules. The GitHub Actions workflow now skips Dependabot runs and uses updated checkout action. index.html form now uses method="post", improved input placeholder, and minor CSS adjustments. Also pinned Prettier version in package.json for consistent formatting. --- .cspell.json | 6 +++++- .github/workflows/super-linter.yml | 4 +++- .htmlhintrc | 4 ++++ index.html | 15 ++++++--------- package.json | 2 +- 5 files changed, 19 insertions(+), 12 deletions(-) diff --git a/.cspell.json b/.cspell.json index af5e9c1..93a0443 100644 --- a/.cspell.json +++ b/.cspell.json @@ -6,5 +6,9 @@ "coliff", "oliff" ], - "allowCompoundWords": true + "allowCompoundWords": true, + "ignorePaths": [ + "README.md", + "index.html" + ] } diff --git a/.github/workflows/super-linter.yml b/.github/workflows/super-linter.yml index 01ec24b..4249d9d 100644 --- a/.github/workflows/super-linter.yml +++ b/.github/workflows/super-linter.yml @@ -16,12 +16,14 @@ jobs: statuses: write name: Lint Code Base runs-on: ubuntu-latest + if: ${{ github.actor != 'dependabot[bot]' }} steps: - name: Checkout Code - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1 with: fetch-depth: 0 + persist-credentials: false - name: Lint Code Base uses: super-linter/super-linter/slim@ffde3b2b33b745cb612d787f669ef9442b1339a6 # v8.1.0 diff --git a/.htmlhintrc b/.htmlhintrc index 10a25a1..3f7f750 100644 --- a/.htmlhintrc +++ b/.htmlhintrc @@ -3,10 +3,14 @@ "attr-lowercase": true, "attr-no-duplication": true, "attr-value-double-quotes": true, + "attr-value-no-duplication": true, "attr-value-not-empty": false, + "button-type-require": true, "doctype-first": true, "doctype-html5": true, + "form-method-require": true, "h1-require": true, + "id-class-ad-disabled": true, "id-unique": true, "main-require": true, "meta-charset-require": true, diff --git a/index.html b/index.html index ff444aa..7272158 100644 --- a/index.html +++ b/index.html @@ -13,14 +13,12 @@ href="data:image/svg+xml,📨" /> - - +