Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Allow Enterprise module to import from feature modules (#71468)

Frasere9b56f49b554
diff --git a/frontend/lint/module-boundaries.mjs b/frontend/lint/module-boundaries.mjs
index cef261e2e0f..df658f8ea19 100644
--- a/frontend/lint/module-boundaries.mjs
+++ b/frontend/lint/module-boundaries.mjs
@@ -18,6 +18,11 @@ const elements = [
...basicModules.map((name) => createElement({ type: "basic", name })),
...sharedModules.map((name) => createElement({ type: "shared", name })),
...featureModules.map((name) => createElement({ type: "feature", name })),
+ {
+ type: "feature/enterprise",
+ pattern: "enterprise/frontend/src/metabase-enterprise/**",
+ mode: "full", // matches the entire path, because enterprise is in a different directory
+ },
{ type: "app/misc", pattern: "frontend/src/metabase/*.*" },
{ type: "shared/other", pattern: "frontend/src/*/**" },
];
@@ -51,6 +56,11 @@ const rules = [
allow: ["lib/*", "basic/*", "shared/*"],
message: "Feature modules cannot import from other feature modules",
},
+ {
+ from: ["feature/enterprise"],
+ allow: ["feature/*"],
+ message: "Enterprise module can import from all feature modules",
+ },
{
from: ["app/*"],
allow: ["lib/*", "basic/*", "shared/*", "feature/*", "app/*"],