Prometheus Entity Management API
    Preparing search index...

    lint/layering-rule.ts — Copyable ESLint flat-config for the Component → Hook → Store layering rule (GAP-7 / change C8).

    This package ships no lint step of its own; this helper returns a flat-config object a consumer can spread into their eslint.config.js. It encodes the non-negotiable rule from CLAUDE.md: component files must not import the graph store directly — data is read through hooks.

    It is plain data (no eslint import), so it adds zero dependencies and is trivially unit-testable.

    interface LayeringRuleOptions {
        componentGlobs?: string[];
        hookGlobs?: string[];
        packageName?: string;
        storeModuleGlobs?: string[];
    }
    Index
    componentGlobs?: string[]

    File globs treated as components (rule applies here).

    hookGlobs?: string[]

    File globs exempted as hooks (rule does NOT apply).

    packageName?: string

    Package name whose useGraphStore export is banned in components.

    storeModuleGlobs?: string[]

    Local module path globs for the graph store (banned in components).