Skip to content

Commit 16e8aef

Browse files
hyeonbinHurljharb
andauthored
Update lib/rules/display-name.js
Co-authored-by: Jordan Harband <[email protected]>
1 parent 6e05536 commit 16e8aef

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

lib/rules/display-name.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -353,15 +353,8 @@ module.exports = {
353353
const list = components.list();
354354
// Report missing display name for all components
355355
values(list)
356-
.filter((component) => {
357-
if (isShadowedComponent(component.node)) {
358-
return false;
359-
}
360-
return !component.hasDisplayName;
361-
})
362-
.forEach((component) => {
363-
reportMissingDisplayName(component);
364-
});
356+
.filter((component) => !isShadowedComponent(component.node) && !component.hasDisplayName)
357+
.forEach((component) => { reportMissingDisplayName(component); });
365358
if (checkContextObjects) {
366359
// Report missing display name for all context objects
367360
forEach(

0 commit comments

Comments
 (0)