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.
1 parent 5bd75c9 commit fa0337dCopy full SHA for fa0337d
lib/rules/jsx-max-depth.js
@@ -91,7 +91,7 @@ module.exports = {
91
function findJSXElementOrFragment(startNode, name, previousReferences) {
92
function find(refs, prevRefs) {
93
for (let i = refs.length - 1; i >= 0; i--) {
94
- if (has(refs[i], 'writeExpr')) {
+ if (has(refs[i], 'writeExpr') && refs[i].writeExpr) {
95
const writeExpr = refs[i].writeExpr;
96
97
return (jsxUtil.isJSX(writeExpr)
0 commit comments