Skip to content

arch: add automated lint rules for package and feature boundaries #276

Description

@cursor

Problem

Architecture boundaries are documented in `.agents/rules/` but not mechanically enforced. Recent violations slipped in despite clear written rules:

Suggested fix

Add oxlint custom rules (similar to `tools/oxlint/node-import-style.mjs`) for:

  1. `apps/app/src/features/*` must not call `useMatch` (route identity belongs in composition roots)
  2. `apps/app/src/features/` must not import from `@/features/`
  3. `apps/app` must not import `@vibest/server`
  4. `packages/contract` must not import other `@vibest/*` packages

Defer until panel ownership is settled (#270):

  • Blocking `@/components/layout/content-panel/*` imports from features

Severity

P2

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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