Skip to content

Commit 09b7dc3

Browse files
Rel1cxCopilot
andauthored
Update packages/plugins/eslint-plugin-react-x/src/rules/no-useless-fragment.ts
Co-authored-by: Copilot <[email protected]> Signed-off-by: REL1CX <[email protected]>
1 parent a6cfa34 commit 09b7dc3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

packages/plugins/eslint-plugin-react-x/src/rules/no-useless-fragment.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,6 @@ function checkNode(
109109
node: TSESTree.JSXElement | TSESTree.JSXFragment,
110110
allowExpressions: boolean,
111111
) {
112-
// const initialScope = context.sourceCode.getScope(node);
113-
114112
// Skip if the fragment has a key prop (indicates it's needed for lists)
115113
if (node.type === T.JSXElement && getJsxAttribute(context, node)("key") != null) {
116114
return;

0 commit comments

Comments
 (0)