From a1182547f88b54ef40dad844ae0ac3c2e23dcc29 Mon Sep 17 00:00:00 2001 From: Victor Fernandez de Alba Date: Thu, 5 Dec 2024 11:12:01 +0100 Subject: [PATCH] Use warning instead, fix the condition --- packages/volto/.eslintrc.core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/volto/.eslintrc.core.js b/packages/volto/.eslintrc.core.js index 09f66c2547..41cf953afe 100644 --- a/packages/volto/.eslintrc.core.js +++ b/packages/volto/.eslintrc.core.js @@ -12,7 +12,7 @@ if (process.env.VOLTOCONFIG) { } else { rules = { 'no-restricted-imports': [ - 'error', + 'warn', { name: '@plone/volto/components', message: @@ -38,5 +38,5 @@ if (process.env.VOLTOCONFIG) { } module.exports = { - rules, + ...(rules && { rules }), };