Skip to content

Harden CI, update ESLint stack, and fix README issues - #181

Open
bvolpato wants to merge 2 commits into
masterfrom
bvolpato/improve-ci-deps-and-readme
Open

bvolpato wants to merge 2 commits into
masterfrom
bvolpato/improve-ci-deps-and-readme

Conversation

@bvolpato

Copy link
Copy Markdown
Collaborator

Summary

Cleans up default-branch CI failures, resolves moderate npm audit findings in the ESLint toolchain, adds automated structural validation for the README catalogue, and fixes stale links, ordering, and markup inconsistencies in the list.

Changes

  • Removes the broken GitLab mirror workflow that has failed authentication on every push to master since September 2026 (superseding Delete old GL workflow #168).
  • Scopes the lint workflow to master pushes and pull requests to avoid duplicate runs on same-repo PR branches, adds job concurrency and timeout bounds, disables persisted checkout credentials, and runs ESLint without a stale cache alongside the new README validator.
  • Lowers Lychee concurrency from 8 to 4, raises per-request retry wait from 5s to 10s, and extends the full-run retry delay from 15s to 30s to reduce transient GreasyFork 502/503 failures.
  • Updates eslint, @stylistic/eslint-plugin, and eslint-plugin-import-x (all releases older than the seven-day cooldown) to clear the minimatch GHSA-g3hv-75wg-m249 audit advisories (superseding Bump the dev-dependencies group across 1 directory with 2 updates #180), and migrates deprecated core ESLint formatting rules to @stylistic/eslint-plugin.
  • Adds a zero-dependency check:readme validator wired into CI, the pre-commit hook, and contribution docs to enforce balanced HTML tags, TOC alignment, alphabetical sorting, cross-listed entry parity, valid URL encoding, and screenshot widths.
  • Migrates the archived KudoAI/* GitHub links (AmazonGPT, BraveGPT, DuckDuckGPT, GoogleGPT) to their active Codeberg repositories, fixes TOC ordering and alphabetical sorting in Display, aligns drifted cross-listed entries (ChatGPT Widescreen, GoogleGPT, Simple Sponsor Skipper), replaces literal Markdown backticks in HTML <summary> with <code>, fixes the YouTube A/B Loop repo slug and URL spaces, and normalizes missing screenshot widths and indentation.

Downsides

  • Lowering Lychee concurrency from 8 to 4 adds roughly 10-20 seconds to link-check runs in exchange for fewer rate-limit and 502/503 retries against GreasyFork.
  • Updating @stylistic/eslint-plugin to v6 raises the minimum Node.js requirement to >=20.19.0 (CI already runs on Node 24).

Testing

  • Ran npm ci --ignore-scripts and npm audit against the updated lockfile with min-release-age=7, confirming zero remaining advisories.
  • Ran npm run lint:all covering JavaScript and Markdown rules across the repository, including the new validator script.
  • Ran npm run check:readme to verify HTML tag balance, TOC matching, alphabetical ordering, cross-listed parity, and entry markup across the catalogue.
  • Verified TOML parsing on .lychee.toml and HTTP 200 responses on the updated Codeberg, ScriptCat, jsDelivr, and raw GitHub URLs. Full Lychee 0.24.2 anchor-only link validation was not run locally because the local binary is 0.23.0; PR CI covers the full scan.

Comment thread scripts/check-readme.mjs

function slugifyHeading(rawHeading) {
const hasLeadingHtml = /^</.test(rawHeading.trim())
const text = rawHeading.replace(/<[^>]+>/g, '').trim()
Comment thread scripts/check-readme.mjs
const match = lines[i].match(/^(#{2,3})\s+(.+)$/)
if (!match) continue
const raw = match[2].trim()
const label = raw.replace(/<[^>]+>/g, '').trim()
Comment thread scripts/check-readme.mjs
for (let i = scriptsStart + 1; i < scriptsEnd; i++) {
const line = lines[i]
if (line.startsWith('### ')) {
const name = line.slice(4).replace(/<[^>]+>/g, '').trim()
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