upleveled / eslint-config-upleveled

UpLeveled ESLint defaults for programming in JavaScript, TypeScript, React, Next.js, Node.js, Postgres.js
https://www.npmjs.com/package/eslint-config-upleveled
42 stars 12 forks source link

Add enforcement of type checking in Expo API Routes #395

Closed karlhorky closed 3 weeks ago

karlhorky commented 4 months ago

Once it's possible to check types of Expo API Routes responses, we can enforce that those types are being added, similar to how we enforce NextResponse<> types for route.ts files:

https://github.com/upleveled/eslint-config-upleveled/blob/6c24362091950278f1b94bbc5aaf4de7f5aebb04/index.js#L915-L931

karlhorky commented 3 weeks ago

ExpoApiResponse type added in this commit in the Expo example repo: