Why this matters
Single source of truth for registries reduces supply-chain and publishing mistakes.
Registry configuration (e.g., .npmrc, .yarnrc.yml) must live at the monorepo root. Forbid .npmrc files inside workspace packages overriding registry auth or URL.
Single source of truth for registries reduces supply-chain and publishing mistakes.
Side-by-side examples engineers can pattern-match during review.
packages/ui/.npmrc
registry=https://registry.example.com/
//overrides root.npmrc
registry=https://registry.npmjs.org/
@acme:registry=https://npm.pkg.github.compackages/ui/.npmrc.npmrc
@scope:registry=https://npm.pkg.github.comFrom the same buckets as this rule.