Skip to content

Align the AGENTS.md fragment guidance with the lint rule - #5901

Merged
Eugene (OEvgeny) merged 3 commits into
mainfrom
OEvgeny/dev-agents-md-fragment
Oct 18, 2026
Merged

Eugene (OEvgeny) merged 3 commits into
mainfrom
OEvgeny/dev-agents-md-fragment

Conversation

@OEvgeny

Copy link
Copy Markdown
Collaborator

Changelog Entry

Not required, development only.

Description

AGENTS.md tells agents to use <> instead of <Fragment>, but .eslintrc.react.yml enforces react/jsx-fragments: element, which rejects <>, and the .tsx files use <Fragment>. Agents following the guide fail lint or add eslint-disable comments (this happened on #5900). This aligns the guide's example with the lint rule.

Design

  • Alternatively, switch the rule to syntax and migrate the 35 <Fragment> usages; happy to do that instead if <> is the preferred direction.

Specific Changes

  • AGENTS.md: the component example uses <Fragment> and imports it

  • I have added tests and executed them locally

  • I have updated CHANGELOG.md

  • I have updated documentation

Review Checklist

This section is for contributors to review your work.

  • Accessibility reviewed (tab order, content readability, alt text, color contrast)
  • Browser and platform compatibilities reviewed
  • CSS styles reviewed (minimal rules, no z-index)
  • Documents reviewed (docs, samples, live demo)
  • Internationalization reviewed (strings, unit formatting)
  • package.json and package-lock.json reviewed
  • Security reviewed (no data URIs, check for nonce leak)
  • Tests reviewed (coverage, legitimacy)

@OEvgeny
Eugene (OEvgeny) marked this pull request as ready for review October 18, 2026 21:25
Copilot AI balanced review requested due to automatic review settings October 18, 2026 21:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@OEvgeny
Eugene (OEvgeny) enabled auto-merge (squash) October 18, 2026 21:57
@OEvgeny
Eugene (OEvgeny) merged commit a048815 into main Oct 18, 2026
32 checks passed
@OEvgeny
Eugene (OEvgeny) deleted the OEvgeny/dev-agents-md-fragment branch October 18, 2026 22:11
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.

3 participants