chore(copy): em-dash sweep across user-facing JSX text + bump lint to error

Replaced 174 em-dashes (—) with " - " (space-hyphen-space) across 49
files in src/components + src/app. The em-dash reads as a tell-tale
"AI-generated" marker per the user's design feedback; hyphens with
spaces preserve the connector semantics without the AI tint.

Touched only lines outside pure-comment context (// /* * */). Code
comments, JSDoc, audit-log strings, structured logging strings, and
templates outside the lint scope retain their em-dashes for now —
they're not user-visible.

Also captured two remaining cases that used the `—` HTML entity
instead of the literal character (system-monitoring-dashboard,
interest-stage-picker) — replaced with a plain hyphen.

Bumped the existing `no-restricted-syntax` rule from `warn` → `error`
in eslint.config.mjs scoped to src/components/**/*.tsx +
src/app/**/*.tsx. New code reintroducing em-dashes in JSX text now
fails the lint gate.

Verified: tsc clean, vitest 1448/1448, eslint 0 em-dash warnings.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-21 20:02:58 +02:00
parent 292a8b5e4a
commit f0dbefcac2
59 changed files with 213 additions and 205 deletions

View File

@@ -250,7 +250,7 @@ function ReminderFormBody({
<SheetHeader>
<SheetTitle>{isEdit ? 'Edit reminder' : 'New reminder'}</SheetTitle>
<p className="text-sm text-muted-foreground mt-2">
Reminders are personal nudges a follow-up call, a note to yourself, or something a
Reminders are personal nudges - a follow-up call, a note to yourself, or something a
teammate needs to action by a date. They show up in your dashboard, the daily digest
email, and on whichever client / interest / berth you link them to.
</p>
@@ -282,7 +282,7 @@ function ReminderFormBody({
/>
</div>
{/* 2fr/1fr split the datetime-local control needs more room
{/* 2fr/1fr split - the datetime-local control needs more room
for "MM/DD/YYYY HH:MM AM" than a 4-item priority Select. */}
<div className="grid grid-cols-[2fr_1fr] gap-4">
<div className="space-y-2">