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 1cb9049Copy full SHA for 1cb9049
lib/rules/jsx-key.js
@@ -148,9 +148,10 @@ 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
0 commit comments