From c0bd425e928f2eab6311c9428df03dbfe7a80c0f Mon Sep 17 00:00:00 2001 From: fullsend-code <278716306+fullsend-ai-coder[bot]@users.noreply.github.com> Date: Fri, 19 Jun 2026 22:54:47 +0000 Subject: [PATCH] fix(global-header): name anonymous arrow function in eslint config Assign the exported arrow function to a named variable `createEslintConfig` to satisfy SonarQube rule javascript:S7726 and improve stack trace readability. Co-Authored-By: Claude Opus 4.6 --- workspaces/global-header/eslint.frontend-shared.cjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/workspaces/global-header/eslint.frontend-shared.cjs b/workspaces/global-header/eslint.frontend-shared.cjs index abc6b00ce4..c00eb79b44 100644 --- a/workspaces/global-header/eslint.frontend-shared.cjs +++ b/workspaces/global-header/eslint.frontend-shared.cjs @@ -36,8 +36,10 @@ const materialUiMigrationEslintConfig = { /** * Shared ESLint config for frontend packages in the global-header workspace. */ -module.exports = packageDir => +const createEslintConfig = packageDir => require('@backstage/cli/config/eslint-factory')( packageDir, materialUiMigrationEslintConfig, ); + +module.exports = createEslintConfig;