We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
jsx-key
1 parent 7b2bcab commit 2849ab3Copy full SHA for 2849ab3
lib/rules/jsx-key.js
@@ -148,9 +148,11 @@ module.exports = {
148
.filter((returnStatement) => returnStatement && returnStatement.argument)
149
.forEach((returnStatement) => {
150
const argument = returnStatement.argument;
151
- checkIteratorElement(returnStatement.argument);
152
if (argument.type === 'LogicalExpression' && isJSX(argument.right)) {
153
checkIteratorElement(argument.right);
+ } else {
154
+ checkIteratorElement(argument);
155
+
156
}
157
});
158
0 commit comments