Skip to content

feat: sap-no-commas-in-section-titles#4614

Draft
marufrasully wants to merge 2 commits into
mainfrom
feat/skills-eslint
Draft

feat: sap-no-commas-in-section-titles#4614
marufrasully wants to merge 2 commits into
mainfrom
feat/skills-eslint

Conversation

@marufrasully
Copy link
Copy Markdown
Contributor

@marufrasully marufrasully commented Apr 29, 2026

New ESLint Rule: sap-no-commas-in-section-titles

New Feature

✨ Adds a new ESLint rule sap-no-commas-in-section-titles to the @sap-ux/eslint-plugin-fiori-tools plugin. This rule detects commas in UI.Facets and UI.HeaderFacets Label values in OData annotation files (V2 and V4), preventing a silent runtime bug where commas break backend message grouping in SAP Fiori elements object pages.

The rule is registered as 'error' in the recommended-for-s4hana config and is not auto-fixable, since the correct replacement depends on the developer's intent.

Changes

  • .agents/skills/fiori-eslint-dev/SKILL.md: New AI agent skill guide documenting the complete step-by-step workflow for developing ESLint rules in this monorepo.
  • .changeset/eslint-plugin-no-commas-in-section-titles.md: Minor version changeset entry for the new rule.
  • packages/eslint-plugin-fiori-tools/src/rules/sap-no-commas-in-section-titles.ts: Core rule implementation. Traverses UI.Facets and UI.HeaderFacets collections (including nested CollectionFacet subsections) and reports any Label PropertyValue containing a comma.
  • packages/eslint-plugin-fiori-tools/src/language/diagnostics.ts: Added the NO_COMMAS_IN_SECTION_TITLES constant and the NoCommasInSectionTitles diagnostic interface, and included it in the Diagnostic union type.
  • packages/eslint-plugin-fiori-tools/src/rules/index.ts: Registered the new rule and imported its module.
  • packages/eslint-plugin-fiori-tools/src/index.ts: Added '@sap-ux/fiori-tools/sap-no-commas-in-section-titles': 'error' to the recommended-for-s4hana config.
  • packages/eslint-plugin-fiori-tools/test/rules/sap-no-commas-in-section-titles.test.ts: Unit tests covering valid cases (no comma, no label, non-XML files) and invalid cases (ReferenceFacet, HeaderFacets, CollectionFacet, nested subsections) for both V2 and V4.
  • packages/eslint-plugin-fiori-tools/docs/rules/sap-no-commas-in-section-titles.md: Rule documentation with examples of incorrect and correct patterns and a fix guide.
  • packages/eslint-plugin-fiori-tools/README.md: Added the new rule to the rules table.
  • 🔄 Regenerate and Update Summary
PR Bot Information

Version: 1.20.37

  • Correlation ID: aa2b45e1-a7f0-4004-a7a5-c04372b49508
  • File Content Strategy: Full file content
  • Output Template: Default Template
  • LLM: anthropic--claude-4.6-sonnet
  • Event Trigger: pull_request.opened
  • Summary Prompt: Default Prompt

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 29, 2026

🦋 Changeset detected

Latest commit: 404a20e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sap-ux/eslint-plugin-fiori-tools Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant