1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-26 06:21:18 -04:00

*much* stricter typescript (and some js) linting 😬

This commit is contained in:
2021-07-11 11:15:53 -04:00
parent d9214d846d
commit a2d2eee612
10 changed files with 101 additions and 44 deletions

View File

@@ -47,6 +47,7 @@ export default async (req: VercelRequest, res: VercelResponse) => {
Sentry.captureException(error);
await Sentry.flush(2000);
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access
res.status(400).json({ message: error.message });
}
};
@@ -94,7 +95,9 @@ const fetchRepos = async (sort: string, limit: number): Promise<Repository[]> =>
}
`;
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const response = await client.request(query, { sort, limit });
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access
const currentRepos: Repository[] = response.user.repositories.edges.map(
({ node: repo }: { [key: string]: Repository }) => ({
...repo,