Skip to content

Commit 8e6b595

Browse files
fix(#3489): name anonymous arrow function in quickstart eslint config (#3504)
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 Co-authored-by: fullsend-code <278716306+fullsend-ai-coder[bot]@users.noreply.github.com>
1 parent 2903d71 commit 8e6b595

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

workspaces/quickstart/eslint.frontend-shared.cjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ const materialUiMigrationEslintConfig = {
3636
/**
3737
* ESLint config for frontend packages in this workspace (MUI v4 migration guards).
3838
*/
39-
module.exports = packageDir =>
40-
require('@backstage/cli/config/eslint-factory')(
39+
module.exports = function createEslintConfig(packageDir) {
40+
return require('@backstage/cli/config/eslint-factory')(
4141
packageDir,
4242
materialUiMigrationEslintConfig,
4343
);
44+
};

0 commit comments

Comments
 (0)