We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
jsx-max-depth
@typescript-eslint/parser
1 parent 6a36b44 commit 28a33dcCopy full SHA for 28a33dc
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 (typeof refs[i].writeExpr !== 'undefined') {
95
const writeExpr = refs[i].writeExpr;
96
97
return (jsxUtil.isJSX(writeExpr)
0 commit comments