Skip to content

Update canonical links, HTML/ESLint rules, and dependencies#212

Merged
coliff merged 2 commits intomainfrom
claude/update-canonical-links-and-eslint-rules
Mar 28, 2026
Merged

Update canonical links, HTML/ESLint rules, and dependencies#212
coliff merged 2 commits intomainfrom
claude/update-canonical-links-and-eslint-rules

Conversation

@Claude
Copy link
Copy Markdown
Contributor

@Claude Claude AI commented Mar 28, 2026

Enhances HTML metadata, strengthens linting rules, and updates dependencies per maintenance requirements.

HTML Metadata (index.html)

  • Added canonical link pointing to production URL
  • Added license link to GitHub repository
  • Removed redundant role="main" from <main> element (implicit ARIA semantics)

Linting Configuration

  • .htmlhintrc: Added button-type-require and frame-title-require rules
  • .eslintrc.json: Enhanced with stricter rules:
    • Enabled no-undef and no-unused-vars as errors
    • Required strict equality (eqeqeq) and explicit braces (curly)
    • Added no-console warning
    • Configured browser environment and ES6 parser options
  • .eslintignore: Broadened to ignore all *.min.* files (was *.min.js)

Dependencies

  • Updated Terser from 5.19.4 to 5.46.1
  • Regenerated minified build with updated tooling

@Claude Claude AI assigned Claude and coliff Mar 28, 2026
@Claude Claude AI linked an issue Mar 28, 2026 that may be closed by this pull request
@netlify
Copy link
Copy Markdown

netlify Bot commented Mar 28, 2026

Deploy Preview for dark-mode-theme-switch ready!

Name Link
🔨 Latest commit bd76b91
🔍 Latest deploy log https://app.netlify.com/projects/dark-mode-theme-switch/deploys/69c7d80414725200074d4f51
😎 Deploy Preview https://deploy-preview-212--dark-mode-theme-switch.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@Claude Claude AI changed the title [WIP] Update rel canonical links and ESLint configuration Update canonical links, HTML/ESLint rules, and dependencies Mar 28, 2026
@Claude Claude AI requested a review from coliff March 28, 2026 13:31
@coliff coliff marked this pull request as ready for review March 28, 2026 13:43
Copilot AI review requested due to automatic review settings March 28, 2026 13:43
@coliff coliff merged commit c15a237 into main Mar 28, 2026
7 checks passed
@coliff coliff deleted the claude/update-canonical-links-and-eslint-rules branch March 28, 2026 13:43
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR performs routine maintenance to improve page metadata, tighten linting, and refresh the minification toolchain for the project’s static demo/build outputs.

Changes:

  • Added canonical + license link metadata in index.html, and removed redundant role="main" from <main>.
  • Strengthened HTMLHint/ESLint configurations (new HTMLHint rules; stricter ESLint rules + browser/ES6 env).
  • Updated terser and regenerated dark-mode-switch.min.js.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
package.json Bumps terser version used for minification.
index.html Adds canonical/license links and removes redundant ARIA role.
dark-mode-switch.min.js Regenerated minified output with updated terser.
.htmlhintrc Enables additional HTMLHint rules for buttons/frames.
.eslintrc.json Adds env/parser options and enforces stricter JS lint rules.
.eslintignore Expands ignore pattern to cover all *.min.* artifacts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Updates

3 participants