19 lines
592 B
JavaScript
19 lines
592 B
JavaScript
const base = require("../dependency-cruiser.cjs");
|
|
|
|
module.exports = {
|
|
...base,
|
|
forbidden: [
|
|
...base.forbidden,
|
|
{
|
|
from: { path: String.raw`\.stories\.tsx$|^\.storybook/preview\.tsx$` },
|
|
name: "stories-must-not-reach-application-data",
|
|
severity: "error",
|
|
to: {
|
|
path: String.raw`^src/(shared/api|features/auth|app/routes|app/ui)/|^src/(entities|features)/[^/]+/api/|^src/pages/[^/]+/ui/.*Page\.tsx$|node_modules/(@tanstack/react-query|openapi-fetch|openapi-react-query)/`,
|
|
reachable: true,
|
|
},
|
|
},
|
|
],
|
|
options: { ...base.options, tsPreCompilationDeps: false },
|
|
};
|