Skip to content

Commit 48f2831

Browse files
Nicolo Taddeiljharb
Nicolo Taddei
authored andcommitted
Hotifx - Issue:1785 - fixed no-deprecated bug
1 parent fb7411d commit 48f2831

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/rules/no-deprecated.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ module.exports = {
101101
return (
102102
deprecated &&
103103
deprecated[method] &&
104+
deprecated[method][0] &&
104105
versionUtil.testReactVersion(context, deprecated[method][0])
105106
);
106107
}

0 commit comments

Comments
 (0)