lib/ui/src/components/notifications/NotificationList.tsx
Unnecessary initialization to 'undefined'. Open
Open
}> = ({ notifications, clearNotification, placement = undefined }) => (
- Read upRead up
- Exclude checks
Rule: no-unnecessary-initializer
Forbids a 'var'/'let' statement or destructuring initializer to be initialized to 'undefined'.
Rationale
Values in JavaScript default to undefined
.
There's no need to do so manually.
Notes
- Has Fix
Config
Not configurable.
Examples
"no-unnecessary-initializer": true
For more information see this page.