From d9cb5e98ebd2ad5ea074f7125847017ea381025d Mon Sep 17 00:00:00 2001 From: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com> Date: Mon, 6 Nov 2023 09:47:26 +0100 Subject: [PATCH] extend explanation --- src/Umbraco.Web.UI.Client/eslint-local-rules.cjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/eslint-local-rules.cjs b/src/Umbraco.Web.UI.Client/eslint-local-rules.cjs index 8a7a9d1d1c..7460abab82 100644 --- a/src/Umbraco.Web.UI.Client/eslint-local-rules.cjs +++ b/src/Umbraco.Web.UI.Client/eslint-local-rules.cjs @@ -344,7 +344,7 @@ module.exports = { meta: { type: 'problem', docs: { - description: 'Ensures that the application does not rely on imports from external packages.', + description: 'Ensures that the application strictly uses node_modules imports from `@umbraco-cms/backoffice/external`. This is needed to run the application in the browser.', recommended: true, }, fixable: 'code', @@ -379,7 +379,7 @@ module.exports = { context.report({ node, - message: 'External imports are not allowed.', + message: 'node_modules imports should be proxied through `@umbraco-cms/backoffice/external`. Please create it if it does not exist.', fix: (fixer) => fixer.replaceText(source, `'@umbraco-cms/backoffice/external${value.startsWith('/') ? '' : '/'}${value}'`), }); },