generated from NaverPayDev/ts-monorepo-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Description
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
peerDependenciesbut is missing indevDependencies, ESLint should report an error. - Optionally, support an
--fixoption to automatically add missing dependencies todevDependencies.
This rule will help maintain consistency and prevent potential issues in monorepos and package-based repositories.
cc) @yujeong-jeon @NaverPayDev/frontend
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels