CI Perf Lint

prefer-frozen-lockfile

Why it matters

Frozen installs keep dependency resolution aligned with the committed lockfile. Explicit flags are unnecessary when the package manager already enables equivalent CI behavior.

What it flags

The separate prefer-npm-ci rule covers npm. pnpm ci is not the recommended pnpm command.

Suggested action

Commit a current lockfile and use pnpm install --frozen-lockfile, yarn install --immutable (modern), yarn install --frozen-lockfile (Classic), or bun ci. Preserve intentional dependency-update workflows.

Verification

Compare total install duration and verify that an out-of-date lockfile fails installation. See pnpm defaults and Yarn defaults.