Skip to content

Commit 91a79a7

Browse files
fix(routes/index): address some eslint errors
This patch addresses some ESLint errors that were a result of some lazy third-party type definitions for `react-simple-maps`. The ideal fix for this, of course, is to simply update those definitions upstream. That would take a while, though, and I need to addresses these errors now.
1 parent d2cbf11 commit 91a79a7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/routes/_index/route.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,13 @@ function Map({ className }: { className?: string }) {
117117
<Geographies geography={geography}>
118118
{({ geographies }) =>
119119
geographies.map((geo) => (
120+
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
120121
<Geography
121-
key={geo.rsmKey}
122+
key={(geo as { rsmKey: string }).rsmKey}
122123
geography={geo}
123124
className='fill-gray-900 dark:fill-gray-100'
124125
/>
126+
/* eslint-enable @typescript-eslint/no-unsafe-assignment */
125127
))
126128
}
127129
</Geographies>

0 commit comments

Comments
 (0)