Skip to content

Commit 57bb4f3

Browse files
author
Simon Schick
committed
fixup! fixup! [New] add jsx-props-no-spread-multi
1 parent b016d8e commit 57bb4f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/rules/jsx-props-no-spread-multi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ module.exports = {
4040
// We detect duplicate expressions by their identifier
4141
const identifierNames = new Set();
4242
for (const spread of spreads) {
43-
if (identifierNames.has(spread.attr.name)) {
43+
if (identifierNames.has(spread.argument.name)) {
4444
report(context, messages.noMultiSpreading, 'noMultiSpreading', {
4545
node: spread,
4646
});
4747
}
48-
identifierNames.add(spread.attr.name);
48+
identifierNames.add(spread.argument.name);
4949
}
5050
},
5151
};

0 commit comments

Comments
 (0)