Skip to content

Enforce peerDependencies to be included in devDependencies #82

@yceffort-naver

Description

@yceffort-naver

Enforce peerDependencies to be included in devDependencies

Description

Currently, there is no validation to ensure that packages listed in peerDependencies are also included in devDependencies. This can cause issues with Turborepo and other build tools that rely on a complete dependency graph.

Proposal

Create an ESLint rule that checks package.json and reports an error if any package in peerDependencies is missing from devDependencies.

Acceptance Criteria

  • Implement an ESLint rule that validates package.json.
  • If a package exists in peerDependencies but is missing in devDependencies, ESLint should report an error.
  • Optionally, support an --fix option to automatically add missing dependencies to devDependencies.

This rule will help maintain consistency and prevent potential issues in monorepos and package-based repositories.

cc) @yujeong-jeon @NaverPayDev/frontend

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions