Commit 35e70d4
authored
docs(claude): always existsSync; forbid async fileExists (#1228)
Strengthen the File Organization rules:
- Tighten the fs import example to the canonical form
`import { existsSync, promises as fs } from 'node:fs'` (was
`someSyncThing` placeholder).
- Explicitly forbid async `fileExists` wrappers and
`fs.stat`-for-existence checks in addition to `fs.access`.
No code changes.1 parent 691cc07 commit 35e70d4
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
0 commit comments