Skip to content

Add linting, spellcheck, and editor configs#214

Merged
coliff merged 3 commits intomainfrom
dev/coliff/configs-update
Apr 13, 2026
Merged

Add linting, spellcheck, and editor configs#214
coliff merged 3 commits intomainfrom
dev/coliff/configs-update

Conversation

@coliff
Copy link
Copy Markdown
Owner

@coliff coliff commented Apr 13, 2026

  • Add project tooling and editor configs: new cspell config and GitHub spellcheck workflow, .prettierignore, .nvmrc and VSCode recommendations/settings.
  • Tighten linters and CI: expand .eslintrc rules, update super-linter/codeql YAML headers, enable an HTMLHint rule change.
  • Update package.json: add htmlhint and cspell scripts, bump prettier, and record Volta node version.
  • Apply small code hygiene changes to source and minified JS ("use strict" and clearer if/else), and normalize README badge text.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 13, 2026

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

Name Link
🔨 Latest commit d93b325
🔍 Latest deploy log https://app.netlify.com/projects/dark-mode-theme-switch/deploys/69dc84de25e15d0007c49541
😎 Deploy Preview https://deploy-preview-214--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.

Copilot AI review requested due to automatic review settings April 13, 2026 05: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 adds project tooling (spellcheck/linting/editor configs) and tightens existing lint/CI rules, alongside small code hygiene updates to the dark-mode switch script and documentation.

Changes:

  • Add cspell configuration plus a GitHub Actions spellcheck workflow and npm scripts for spellcheck/HTML linting.
  • Tighten ESLint rules/config and normalize workflow YAML headers; add Prettier ignore for minified assets.
  • Apply minor JS hygiene updates ("use strict", clearer branching) and small README badge text normalization.

Reviewed changes

Copilot reviewed 13 out of 14 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
README.md Normalizes the GitHub stars badge label text.
package.json Adds htmlhint/cspell scripts, bumps Prettier, and pins Node via Volta.
dark-mode-switch.js Adds global strict mode and replaces ternary with explicit if/else.
dark-mode-switch.min.js Regenerates/minimally updates minified output to match source hygiene changes.
.vscode/settings.json Adds workspace save/format settings (ESLint fix-on-save, etc.).
.vscode/extensions.json Adds VS Code extension recommendations.
.prettierignore Excludes minified files from Prettier formatting.
.nvmrc Pins Node version for nvm users.
.htmlhintrc Tightens HTMLHint by requiring a canonical link.
.eslintrc.json Expands/strengthens ESLint rules and updates parsing options.
.cspell.json Adds repository spellcheck configuration and custom dictionary words.
.github/workflows/spellcheck.yml Adds CI spellcheck workflow using cspell-action.
.github/workflows/super-linter.yml Adds YAML document start marker.
.github/workflows/codeql-analysis.yml Adds YAML document start marker.

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

Comment thread .vscode/settings.json
Comment thread .eslintrc.json
Comment thread package.json
Comment thread .vscode/extensions.json Outdated
Add project tooling and editor configs: new cspell config and GitHub spellcheck workflow, .prettierignore, .nvmrc and VSCode recommendations/settings. Tighten linters and CI: expand .eslintrc rules, update super-linter/codeql YAML headers, enable an HTMLHint rule change. Update package.json: add htmlhint and cspell scripts, bump prettier, and record Volta node version. Apply small code hygiene changes to source and minified JS ("use strict" and clearer if/else), and normalize README badge text.

Update CI, prettierignore, and README wording

Minor repository tweaks: use consistent double quotes in the spellcheck workflow name, disable VALIDATE_NATURAL_LANGUAGE in the super-linter workflow, add .cspell.json to .prettierignore to avoid formatting the spellcheck config, and change README text to refer to the localStorage API.

Update CI, prettierignore, and README wording

Minor repository tweaks: use consistent double quotes in the spellcheck workflow name, disable VALIDATE_NATURAL_LANGUAGE in the super-linter workflow, add .cspell.json to .prettierignore to avoid formatting the spellcheck config, and change README text to refer to the localStorage API.

Add package.json to .prettierignore; tidy extensions

Add package.json to .prettierignore so Prettier ignores it. Also normalize .vscode/extensions.json by compacting the recommendations array to a single line and adjust newline/EOF formatting in .prettierignore.

Add package.json to .prettierignore; tidy extensions

Add package.json to .prettierignore so Prettier ignores it. Also normalize .vscode/extensions.json by compacting the recommendations array to a single line and adjust newline/EOF formatting in .prettierignore.

Remove .eslintignore and update ESLint config

Delete the standalone .eslintignore and consolidate ignores into .eslintrc.json (added "node_modules/" to ignorePatterns). Also adjust parserOptions.ecmaVersion from 2020 to 2015 to target ES2015 syntax; no other rule changes.
@coliff coliff force-pushed the dev/coliff/configs-update branch from f63b231 to e2a4cc6 Compare April 13, 2026 05:51
@coliff coliff merged commit 17555d1 into main Apr 13, 2026
16 checks passed
@coliff coliff deleted the dev/coliff/configs-update branch April 13, 2026 06:48
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.

2 participants