consistent dependency formatting

Maintain consistent formatting and organization when managing dependencies in package.json files. Use semver range notation (^) consistently for all dependencies to allow compatible updates, and make targeted changes rather than bulk updates to preserve clean git history and blame information.

copy reviewer prompt

Prompt

Reviewer Prompt

Maintain consistent formatting and organization when managing dependencies in package.json files. Use semver range notation (^) consistently for all dependencies to allow compatible updates, and make targeted changes rather than bulk updates to preserve clean git history and blame information.

Example:

// Good - consistent semver ranges and targeted updates
"@biomejs/biome": "^1.0.0",
"@babel/runtime": "^7.27.0"

// Avoid - missing semver range and bulk updates
"@biomejs/biome": "1.0.0"  // Missing ^ prefix

When updating dependencies, only modify the specific packages you intend to upgrade rather than running broad update commands that change multiple unrelated dependencies simultaneously.

Source discussions