Skip to content

fix: allow nested content in Ionic item groups - #35

Merged
rdlabo merged 1 commit into
mainfrom
fix/item-group-ancestor-check
Sep 9, 2026
Merged

fix: allow nested content in Ionic item groups#35
rdlabo merged 1 commit into
mainfrom
fix/item-group-ancestor-check

Conversation

@rdlabo

@rdlabo rdlabo commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

require-ion-item-group rejected already-grouped content such as ion-list > ion-item-group > ion-accordion-group > ion-accordion > ion-item. Restructuring the UI to satisfy the rule split a single visual group and changed its spacing and rounded corners.

Check for a supported group between each item and its nearest enclosing list instead of requiring an exact ancestor depth. Allow nested accordions and rendered wrappers while continuing to report missing groups, including inside nested lists. Preserve the existing conservative autofix behavior.

Validation:

  • Full plugin npm run lint passed.
  • Full plugin npm test passed: 30 suites, 628 tests.
  • Consumer application full lint passed (0 errors, 8 existing warnings), and all 557 tests passed with the original grouped layout restored.

Devin Review

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@rdlabo
rdlabo merged commit b1091f1 into main Sep 9, 2026
7 checks passed
@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown

npm beta published

CI passed for the merge commit b1091f1ba25f. Install the immutable version with:

npm install @rdlabo/eslint-plugin-rules@22.1.0-beta.pr35.shab1091f1ba25f

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