From 258d611bffab2a1ddea6966a7ca866ddad0100fc Mon Sep 17 00:00:00 2001 From: fullsend-code <278716306+fullsend-ai-coder[bot]@users.noreply.github.com> Date: Fri, 19 Jun 2026 21:34:51 +0000 Subject: [PATCH] fix(#3489): name anonymous arrow function in quickstart eslint config Convert the anonymous arrow function export in eslint.frontend-shared.cjs to a named function expression (`createEslintConfig`) to satisfy SonarQube rule javascript:S7726. This follows the same pattern used in the theme and other workspaces. Closes #3489 --- workspaces/quickstart/eslint.frontend-shared.cjs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/workspaces/quickstart/eslint.frontend-shared.cjs b/workspaces/quickstart/eslint.frontend-shared.cjs index 02cb00ae23..3eb25a6d81 100644 --- a/workspaces/quickstart/eslint.frontend-shared.cjs +++ b/workspaces/quickstart/eslint.frontend-shared.cjs @@ -36,8 +36,9 @@ const materialUiMigrationEslintConfig = { /** * ESLint config for frontend packages in this workspace (MUI v4 migration guards). */ -module.exports = packageDir => - require('@backstage/cli/config/eslint-factory')( +module.exports = function createEslintConfig(packageDir) { + return require('@backstage/cli/config/eslint-factory')( packageDir, materialUiMigrationEslintConfig, ); +};