+// Forward guard: bans any file whose basename is index.[cm]?[tj]s except the single allowed public barrel at src/index.ts. An audit confirmed every file in this package currently has only src/index.ts and no other index.* file, so this rule flags nothing today -- it exists to keep a second barrel from accreting unnoticed, since two files sharing the index.* name would shadow one another under several bundlers and Node's own resolution and silently surface the wrong module under a name a consumer expects to mean something else. String operations only, no node:path import needed.
0 commit comments