Prevent direct imports from shared components (#31238)

Because we use the package now so importing directly causes subtle breakage.
This commit is contained in:
David Baker 2025-11-14 10:51:34 +00:00 committed by GitHub
parent f400d8db0a
commit 333bec33ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -167,6 +167,10 @@ module.exports = {
group: ["@vector-im/compound-design-tokens/icons/*"],
message: "Please use @vector-im/compound-design-tokens/assets/web/icons/* instead",
},
{
group: ["**/packages/shared-components/**", "../packages/shared-components/**"],
message: "Please use @element-hq/web-shared-components",
},
],
},
],