Skip to content

Cleaned stale package references out of lint tooling configs - #29687

Merged
9larsons merged 1 commit into
mainfrom
slars/cleanup-stale-lint-config
Jul 30, 2026
Merged

9larsons merged 1 commit into
mainfrom
slars/cleanup-stale-lint-config

Conversation

@9larsons

Copy link
Copy Markdown
Contributor

Summary

apps/admin-x-design-system and apps/posts no longer exist in the workspace, but the boundary and lint-staged configs still referenced them. This cleans out those references so the configs describe only packages that exist.

.dependency-cruiser.cjs:

  • Deleted the admin-x-design-system-does-not-depend-on-framework rule — its from path ^apps/admin-x-design-system/ can never match.
  • Deleted the new-admin-apps-not-admin-x-design-system rule — its from covered apps/posts (gone) and apps/activitypub, and its to targeted the deleted design-system package.
  • Removed admin-x-design-system from the shade-is-leaf and public-apps-not-admin-libs target lists and their comments.
  • Removed posts from the framework-not-feature-apps target list and comment.
  • Updated the file header, which still described admin-x-design-system/ as a current leaf package.

.lintstagedrc.cjs:

  • Removed admin-x-design-system and posts from the workspace-dir brace glob so lint-staged stops matching paths that cannot exist.

Verification

  • pnpm lint:boundaries — pass (depcruise over ghost/core/core + apps with the edited config)
  • cd apps/signup-form && pnpm lint — pass
  • cd apps/activitypub && pnpm lint — pass
  • node -e "require('./.lintstagedrc.cjs')" — config parses

no ref

- apps/admin-x-design-system and apps/posts no longer exist, but the
  dependency-cruiser boundary rules and the lint-staged workspace glob
  still referenced them
- the two rules whose from-paths can never match again are deleted, the
  surviving rules' target lists and comments drop the dead package
  names, and the file header no longer describes admin-x-design-system
  as a current leaf package
@nx-cloud

nx-cloud Bot commented Jul 30, 2026 •

Copy link
Copy Markdown

🤖 Nx Cloud AI Fix

Ensure the fix-ci command is configured to always run in your CI pipeline to get automatic fixes in future runs. For more information, please see https://nx.dev/ci/features/self-healing-ci


View your CI Pipeline Execution ↗ for commit 6f9af2d

Command Status Duration Result
nx run ghost-monorepo:lint:boundaries ✅ Succeeded 20s View ↗
nx run-many --target=build --projects=tag:publi... ✅ Succeeded <1s View ↗
nx run-many -t lint -p ghost-monorepo ✅ Succeeded <1s View ↗
nx run @tryghost/admin:build ✅ Succeeded 3s View ↗

💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗


☁️ Nx Cloud last updated this comment at 2026-07-30 14:17:22 UTC

@coderabbitai

coderabbitai Bot commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: eeb1901a-6dc3-4bf8-983d-209ccdd1a5b4

📥 Commits

Reviewing files that changed from the base of the PR and between 1938a05 and 6f9af2d.

📒 Files selected for processing (2)
  • .dependency-cruiser.cjs
  • .lintstagedrc.cjs

Walkthrough

Updated the apps/ architecture documentation and dependency-cruiser rules to redefine allowed dependencies among shade, framework, feature, and public UMD applications. Removed obsolete admin-x-design-system restrictions and narrowed several forbidden dependency sets. Updated the lint-staged source glob to exclude the admin-x-design-system and posts app directories.

Suggested reviewers: erisds

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the main change: removing stale package references from lint tooling configs.
Description check ✅ Passed The description is directly related to the dependency-cruiser and lint-staged cleanup and matches the changeset.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch slars/cleanup-stale-lint-config

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@9larsons
9larsons enabled auto-merge (squash) July 30, 2026 14:23
@9larsons
9larsons merged commit fe9a14b into main Jul 30, 2026
46 checks passed
@9larsons
9larsons deleted the slars/cleanup-stale-lint-config branch July 30, 2026 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant