OptionalcomponentFile globs treated as components (rule applies here).
OptionalhookFile globs exempted as hooks (rule does NOT apply).
OptionalpackagePackage name whose useGraphStore export is banned in components.
OptionalstoreLocal module path globs for the graph store (banned in components).
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
eslintimport), so it adds zero dependencies and is trivially unit-testable.