refactor: refactor foundation
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
module.exports = {
|
||||
forbidden: [
|
||||
{
|
||||
name: "shared-must-not-depend-on-layers",
|
||||
from: { path: "^src/shared/" },
|
||||
to: { path: "^src/(entities|features|pages|app)/" },
|
||||
},
|
||||
{
|
||||
name: "entities-must-not-depend-on-higher-layers",
|
||||
from: { path: "^src/entities/" },
|
||||
to: { path: "^src/(features|pages|app)/" },
|
||||
},
|
||||
{
|
||||
name: "features-must-not-depend-on-higher-layers",
|
||||
from: { path: "^src/features/" },
|
||||
to: { path: "^src/(pages|app)/" },
|
||||
},
|
||||
{
|
||||
name: "pages-must-not-depend-on-app",
|
||||
from: { path: "^src/pages/" },
|
||||
to: { path: "^src/app/" },
|
||||
},
|
||||
],
|
||||
options: {
|
||||
doNotFollow: { path: "node_modules" },
|
||||
tsConfig: { fileName: "tsconfig.app.json" },
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user