From 46b8ff644ae60fa99df4ca6876f450d0663b24af Mon Sep 17 00:00:00 2001 From: jdalton Date: Fri, 17 Apr 2026 19:24:36 -0400 Subject: [PATCH] docs(claude): always existsSync for file existence Add shared-standards rule: use existsSync from node:fs. Forbid fs.access, fs.stat-for-existence, and async fileExists wrappers. Canonical import form: `import { existsSync, promises as fs } from 'node:fs'`. --- CLAUDE.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CLAUDE.md b/CLAUDE.md index 46d61eb4..1f748755 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -22,6 +22,7 @@ - Backward Compatibility: 🚨 FORBIDDEN to maintain - actively remove when encountered (see canonical CLAUDE.md) - 🚨 **NEVER use `npx`, `pnpm dlx`, or `yarn dlx`** — use `pnpm exec ` for devDep binaries, or `pnpm run