[Fix] display-name
: avoid false positive when React is shadowed
#3926
82.53% of diff hit (target 97.73%)
View this Pull Request on Codecov
82.53% of diff hit (target 97.73%)
Annotations
Check warning on line 213 in lib/rules/display-name.js
codecov / codecov/patch
lib/rules/display-name.js#L213
Added line #L213 was not covered by tests
Check warning on line 231 in lib/rules/display-name.js
codecov / codecov/patch
lib/rules/display-name.js#L230-L231
Added lines #L230 - L231 were not covered by tests
Check warning on line 235 in lib/rules/display-name.js
codecov / codecov/patch
lib/rules/display-name.js#L233-L235
Added lines #L233 - L235 were not covered by tests
Check warning on line 240 in lib/rules/display-name.js
codecov / codecov/patch
lib/rules/display-name.js#L238-L240
Added lines #L238 - L240 were not covered by tests
Check warning on line 243 in lib/rules/display-name.js
codecov / codecov/patch
lib/rules/display-name.js#L243
Added line #L243 was not covered by tests
Check warning on line 247 in lib/rules/display-name.js
codecov / codecov/patch
lib/rules/display-name.js#L247
Added line #L247 was not covered by tests