fbredius/storybook

View on GitHub
lib/ui/src/components/notifications/NotificationList.tsx

Summary

Maintainability
A
0 mins
Test Coverage

Unnecessary initialization to 'undefined'.
Open

}> = ({ notifications, clearNotification, placement = undefined }) => (

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.

There are no issues that match your filters.

Category
Status