From 0a254aa6a08c8ebbb09235fdb4942058c5c245b2 Mon Sep 17 00:00:00 2001 From: Hellgren Heikki Date: Fri, 13 Jun 2025 11:14:38 +0300 Subject: [PATCH] chore: make mixed plugin imports warning instead error Signed-off-by: Hellgren Heikki --- .changeset/mean-pillows-enter.md | 3 +++ packages/eslint-plugin/index.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.changeset/mean-pillows-enter.md b/.changeset/mean-pillows-enter.md index 7775e2648f..500c9af486 100644 --- a/.changeset/mean-pillows-enter.md +++ b/.changeset/mean-pillows-enter.md @@ -10,3 +10,6 @@ the backstage architecture. This rule forces that: - No imports from frontend plugins to backend plugins or other frontend plugins. - No imports from backend plugins to frontend plugins or other backend plugins. - No imports from common plugins to frontend or backend plugins. + +The current recommended configuration is giving a warning for mixed imports. This is to be changed in +the future to an error so please adjust your workspace accordingly. diff --git a/packages/eslint-plugin/index.js b/packages/eslint-plugin/index.js index a1e38e4269..58b597a438 100644 --- a/packages/eslint-plugin/index.js +++ b/packages/eslint-plugin/index.js @@ -22,7 +22,7 @@ module.exports = { '@backstage/no-forbidden-package-imports': 'error', '@backstage/no-relative-monorepo-imports': 'error', '@backstage/no-undeclared-imports': 'error', - '@backstage/no-mixed-plugin-imports': 'error', + '@backstage/no-mixed-plugin-imports': 'warn', }, }, },