Skip to content

Commit

Permalink
fixup! fixup! [New] add jsx-props-no-spread-multi
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSchick committed Jun 7, 2024
1 parent b016d8e commit 57bb4f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rules/jsx-props-no-spread-multi.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ module.exports = {
// We detect duplicate expressions by their identifier
const identifierNames = new Set();
for (const spread of spreads) {
if (identifierNames.has(spread.attr.name)) {
if (identifierNames.has(spread.argument.name)) {
report(context, messages.noMultiSpreading, 'noMultiSpreading', {
node: spread,
});
}
identifierNames.add(spread.attr.name);
identifierNames.add(spread.argument.name);
}
},
};
Expand Down

0 comments on commit 57bb4f3

Please sign in to comment.