WordPress/gutenberg

Add linting rule to fail build if package A incorrectly depends on package B

Open

#11,865 opened on Nov 14, 2018

View on GitHub
 (3 comments) (0 reactions) (0 assignees)JavaScript (3,893 forks)batch import
Good First IssueNeeds Dev[Type] Automated Testing[Type] Enhancement

Repository metrics

Stars
 (9,607 stars)
PR merge metrics
 (Avg merge 12d 18h) (509 merged PRs in 30d)

Description

Because we want to avoid cross-dependencies in our packages, it would be helpful if these cross-dependencies were caught by JavaScript linting.

We should add a linting rule that fails the build if package A incorrectly depends on package B.

From https://github.com/WordPress/gutenberg/pull/11409#issuecomment-438695404

Contributor guide