<!--
title: consistent dependency formatting
domain: app-frameworks
topic: Code Style
language: Json
source: ant-design/ant-design
updated: 2025-04-22
url: https://awesomereviewers.com/reviewers/ant-design-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.

Example:
```json
// 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.
