@zedtech/zedkit-quality
Enforce route, view and data layer boundaries
Ban cross-layer imports (route to kit, view to data client, data to UI) at lint time.
alpha
Usage
At a glance
- Who: Frontend teams keeping routes thin, views presentational and data UI-free.
- What: Ban cross-layer imports (route to kit, view to data client, data to UI) at lint time.
- Use when: When features map onto route/view/data folders and bypasses must fail the gate.
- Avoid when: When the repo has no layered folders (nothing to map the globs onto).
- See also: Lint UI files for accessibility, Tailwind and tokens
Install
pnpm add @zedtech/zedkit-qualityLatest: 0.1.0 (via changesets).
Example
import { defineLayers } from "@zedtech/zedkit-quality/eslint";
export default [
...defineLayers({
kitPackage: "@acme/ui",
viewDirs: ["app/**/ui/**"],
dataDirs: ["lib/**"],
actionPatterns: ["@/lib/*", "**/actions", "**/actions/**"],
}),
];Wraps: eslint