diff --git a/packages/modules/packages/module/src/components/Card/Module/CardHeader.tsx b/packages/modules/packages/module/src/components/Card/Module/CardHeader.tsx index bba6f51cc0..3fcd0ea6d1 100644 --- a/packages/modules/packages/module/src/components/Card/Module/CardHeader.tsx +++ b/packages/modules/packages/module/src/components/Card/Module/CardHeader.tsx @@ -24,9 +24,9 @@ export const ModuleCardHeader: React.FC = ( <> {mod ? moduleTypes.map((moduleType) => { - const Icon = getModuleIcons(moduleType, mod) - return Icon ? : null - }) + const Icon = getModuleIcons(moduleType, mod) + return Icon ? : null + }) : null} ) diff --git a/packages/plugins/packages/aggregate-price/src/components/CryptoAssetRenderer.tsx b/packages/plugins/packages/aggregate-price/src/components/CryptoAssetRenderer.tsx index bd602d88d5..a260f6f07e 100644 --- a/packages/plugins/packages/aggregate-price/src/components/CryptoAssetRenderer.tsx +++ b/packages/plugins/packages/aggregate-price/src/components/CryptoAssetRenderer.tsx @@ -26,10 +26,10 @@ export const CryptoAssetRenderer: React.FC = ({ payloa {cryptoAssetPayload ? Object.entries(cryptoAssetPayload.assets).map(([asset, priceInfo]) => ( - - - - )) + + + + )) : null} diff --git a/packages/plugins/packages/coin-gecko-prices/src/hooks/getCoinGeckoToPriceAggregate.tsx b/packages/plugins/packages/coin-gecko-prices/src/hooks/getCoinGeckoToPriceAggregate.tsx index 46fdb13b06..0a92375ea5 100644 --- a/packages/plugins/packages/coin-gecko-prices/src/hooks/getCoinGeckoToPriceAggregate.tsx +++ b/packages/plugins/packages/coin-gecko-prices/src/hooks/getCoinGeckoToPriceAggregate.tsx @@ -4,9 +4,9 @@ const mapAssetsToString = (assetValues: Partial> | undefi return assetValues // eslint-disable-next-line unicorn/no-array-reduce ? Object.entries(assetValues).reduce>>((accumulator, [symbol, value]) => { - accumulator[symbol] = value?.toString() - return accumulator - }, {}) + accumulator[symbol] = value?.toString() + return accumulator + }, {}) : undefined } diff --git a/packages/sdk/packages/address/packages/history/src/components/AddressHistory/AddressHistory.tsx b/packages/sdk/packages/address/packages/history/src/components/AddressHistory/AddressHistory.tsx index 5148f1bf06..9eca550659 100644 --- a/packages/sdk/packages/address/packages/history/src/components/AddressHistory/AddressHistory.tsx +++ b/packages/sdk/packages/address/packages/history/src/components/AddressHistory/AddressHistory.tsx @@ -44,26 +44,26 @@ const AddressHistory = forwardRef(({ {orderedAddressHistoryPairs ? orderedAddressHistoryPairs.map(([bw, bwHash], index) => ( - - {index === 0 - ? null - : ( - - )} - handleClick(bwHash)} - sx={{ cursor: selectable ? 'pointer' : 'default' }} - active={activeBoundWitnessHash ? bwHash === activeBoundWitnessHash : false} - /> - - )) + + {index === 0 + ? null + : ( + + )} + handleClick(bwHash)} + sx={{ cursor: selectable ? 'pointer' : 'default' }} + active={activeBoundWitnessHash ? bwHash === activeBoundWitnessHash : false} + /> + + )) : ( <> {skeleton diff --git a/packages/sdk/packages/event/src/hooks/useCustomEvent.ts b/packages/sdk/packages/event/src/hooks/useCustomEvent.ts index b8e014d426..766c88f01d 100644 --- a/packages/sdk/packages/event/src/hooks/useCustomEvent.ts +++ b/packages/sdk/packages/event/src/hooks/useCustomEvent.ts @@ -26,7 +26,6 @@ export const useCustomEvent = ( : undefined if (handler && element) { - // eslint-disable-next-line @eslint-react/web-api/no-leaked-event-listener element?.addEventListener(type, handler) } return () => { diff --git a/packages/sdk/packages/payload/packages/table/src/components/Table/TableRowNoData.tsx b/packages/sdk/packages/payload/packages/table/src/components/Table/TableRowNoData.tsx index 703b043a82..87d8337217 100644 --- a/packages/sdk/packages/payload/packages/table/src/components/Table/TableRowNoData.tsx +++ b/packages/sdk/packages/payload/packages/table/src/components/Table/TableRowNoData.tsx @@ -22,8 +22,8 @@ export const TableRowNoData: React.FC = ({ {additionalCells ? Array.from({ length: additionalCells }) - .fill(null) - .map((_fill, index) => ) + .fill(null) + .map((_fill, index) => ) : null} ) diff --git a/packages/sdk/packages/typedoc/src/ReflectionViewer/NameViewer.tsx b/packages/sdk/packages/typedoc/src/ReflectionViewer/NameViewer.tsx index e0b8671cb1..926443bc7a 100644 --- a/packages/sdk/packages/typedoc/src/ReflectionViewer/NameViewer.tsx +++ b/packages/sdk/packages/typedoc/src/ReflectionViewer/NameViewer.tsx @@ -36,8 +36,8 @@ export const NameViewer: React.FC = ({ {reflection.flags ? Object.entries(reflection.flags).map(([flag, value]) => { - return value ? : null - }) + return value ? : null + }) : null} {document && document?.location.hostname === 'localhost' && ( diff --git a/packages/sdk/packages/typedoc/src/ReflectionViewer/ReflectionGroupViewer.tsx b/packages/sdk/packages/typedoc/src/ReflectionViewer/ReflectionGroupViewer.tsx index 15345c5be9..05ef4a74bc 100644 --- a/packages/sdk/packages/typedoc/src/ReflectionViewer/ReflectionGroupViewer.tsx +++ b/packages/sdk/packages/typedoc/src/ReflectionViewer/ReflectionGroupViewer.tsx @@ -43,8 +43,8 @@ export const ReflectionGroupViewer: React.FC = ({ const visibleChildren = hiddenFlags ? resolvedChildren.reduce((acc, item) => { - return acc + (hide(item.flags, hiddenFlags) ? 0 : 1) - }, 0) + return acc + (hide(item.flags, hiddenFlags) ? 0 : 1) + }, 0) : 1 const { hash } = useLocation()