no-em-dash pre-commit hook for user-facing strings, existing em-dashes rewritten
frontend/scripts/no-em-dash.ts walks src/ with the TypeScript parser and flags an em-dash in JSX text, string literals and template text. A bare "—" placeholder passes, separators go in no-em-dash.allow.json. The script is identical to index's copy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WgBfkm4rCmtd1T4vHWjEPx
This commit is contained in:
@@ -802,8 +802,8 @@ export function DashboardEditor({
|
||||
>
|
||||
<span className="truncate text-sm">
|
||||
{clipped.length === 1
|
||||
? "1 widget sits below the canvas — a panel this size will not show it."
|
||||
: `${clipped.length} widgets sit below the canvas — a panel this size will not show them.`}
|
||||
? "1 widget sits below the canvas. A panel this size will not show it."
|
||||
: `${clipped.length} widgets sit below the canvas. A panel this size will not show them.`}
|
||||
</span>
|
||||
<Button
|
||||
variant="outline"
|
||||
@@ -885,7 +885,7 @@ export function DashboardEditor({
|
||||
hasDraft={hasDraft}
|
||||
saving={save.isPending}
|
||||
publishing={publish.isPending}
|
||||
draftHint="Saved — publish to put it on the panels"
|
||||
draftHint="Saved. Publish to put it on the panels"
|
||||
onPublish={() => void publishDashboard()}
|
||||
/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user