Frontend verify / commits (pull_request) Successful in 29s
Frontend verify / security (pull_request) Successful in 9s
Frontend verify / verify (pull_request) Successful in 8m54s
Frontend verify / commits (push) Skipped
Frontend verify / security (push) Successful in 12s
Frontend verify / verify (push) Successful in 9m59s
24 lines
615 B
JavaScript
24 lines
615 B
JavaScript
const base = require("../dependency-cruiser.cjs");
|
|
|
|
module.exports = {
|
|
...base,
|
|
forbidden: [
|
|
...base.forbidden,
|
|
{
|
|
from: { path: "[.]stories[.]tsx$|^[.]storybook/preview[.]tsx$" },
|
|
name: "stories-must-not-reach-application-data",
|
|
severity: "error",
|
|
to: {
|
|
path: [
|
|
"^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 },
|
|
};
|