Skip to content

[Feature]: implement react/jsx-no-useless-fragment #1937

Description

@fi3ework

What problem does this feature solve?

We are migrating the storybook-rsbuild monorepo from Biome to Rslint. Almost all of our previous lint policy mapped 1:1 onto Rslint's existing rules — the one gap left on the React side is react/jsx-no-useless-fragment.

The rule is already listed (unchecked) in the eslint-plugin-react tracking issue #225, so this is a request to prioritize it. Reasons it pulls ahead of the rest of the backlog:

What does the proposed API of configuration look like?

Same as upstream eslint-plugin-react, no new API surface:

rules: {
  'react/jsx-no-useless-fragment': ['warn', { allowExpressions: true }],
}

Options to match upstream: allowExpressions (default false).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions