Skip to content

chore: add EditorConfig, Prettier, and ESLint across all three projects#67

Merged
tbjers merged 1 commit into
mainfrom
chore/formatting-and-typing
Jul 12, 2026
Merged

chore: add EditorConfig, Prettier, and ESLint across all three projects#67
tbjers merged 1 commit into
mainfrom
chore/formatting-and-typing

Conversation

@tbjers

@tbjers tbjers commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds .editorconfig, Prettier, and ESLint (flat config, non-type-checked recommended) to the root Wrangler Worker, the SvelteKit dashboard, and the GitHub Action — each keeps its own Prettier/ESLint devDependencies and config since the three are independent npm projects with no workspaces.
  • Wires lint and format:check steps into the existing ci.yml jobs (test-e2e, backend-coverage) and action-test.yml, with no new CI jobs and no duplicated checkout/setup-node/npm ci work.
  • One-time repo-wide eslint --fix + prettier --write pass (mostly whitespace/quote-style/line-wrap reformatting), plus a couple of real fixes surfaced along the way:
    • .github/actions/report/src/complexity/detect.ts: literal BOM character in a regex replaced with the  escape sequence.
    • dashboard/src/routes/+layout.svelte: Svelte 5 reactive-dependency reads now use the existing void x; convention (matching TrendChart.svelte/MultiSparkLine.svelte) instead of eslint-disable comments.
    • eslint.config.mjs: fixed a lint-coverage gap where .github/scripts/*.mjs was silently skipped (ESLint's CLI doesn't traverse dot-directories via a bare . — needed an explicit glob).
    • docs/plans/consumer-generated-reports-migration-plan-v3.md: restored two nested markdown lists that a reproducible Prettier formatter bug was collapsing into run-on paragraphs; wrapped both in <!-- prettier-ignore --> so they stay stable across future format runs.

Test plan

  • npm run lint / format:check / typecheck / test:coverage pass at repo root
  • npm run lint / format:check / typecheck pass in dashboard/
  • npm run lint / format:check / typecheck / test pass in .github/actions/report/
  • npm run build in .github/actions/report/ still produces a working dist/index.js
  • CI green on this PR (ci.yml, action-test.yml)

🤖 Generated with Claude Code

Adds shared editor/format/lint conventions for the root Worker, the
SvelteKit dashboard, and the GitHub Action, each keeping its own
Prettier/ESLint devDependencies and config since the three are
independent npm projects with no workspaces. Wires lint and
format-check steps into the existing CI jobs (no new jobs, no
duplicated checkout/install work) and applies a one-time repo-wide
--fix/--write pass.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
demo-coveragetracker-dev 9771236 Commit Preview URL

Branch Preview URL
Jul 12 2026, 12:58 AM

@tbjers
tbjers merged commit fb8ddef into main Jul 12, 2026
10 checks passed
@tbjers
tbjers deleted the chore/formatting-and-typing branch July 12, 2026 01:00
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.

1 participant