Summary
Standardize formatting and linting across widget/ and worker/ with shared config, and block bad commits at the local level via Husky + lint-staged.
Motivation
The project is already large enough that inconsistent style and lint drift will create review friction. Locking this in now is much cheaper than retrofitting later.
Acceptance Criteria
Summary
Standardize formatting and linting across
widget/andworker/with shared config, and block bad commits at the local level via Husky + lint-staged.Motivation
The project is already large enough that inconsistent style and lint drift will create review friction. Locking this in now is much cheaper than retrofitting later.
Acceptance Criteria
eslint.config.js(flat config) with shared base + per-package overrides for widget (React) and worker (Cloudflare)prettierconfigured with.editorconfigand a.prettierignoreeslint --fixandprettier --writeon staged filescommitlintenforcing Conventional Commits (matches existing branch-prefix convention)pnpm lintandpnpm format:checkand fails on violations