Skip to content

Fix/eslint

Fix/eslint #89

Triggered via pull request September 17, 2024 14:42
Status Failure
Total duration 58s
Artifacts

ci.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

14 errors and 1 warning
lint
Process completed with exit code 1.
lint
Process completed with exit code 1.
lint
Process completed with exit code 2.
lint: src/app/api/data/[facultyId]/route.ts#L43
Type '(_request: Request, { params }: { params: { facultyId: string; }; }) => Promise<NextResponse<{ registrations: { registration: Registration; courses: { course: { id: string; name: string; }; groups: { ...; }[]; }[]; }[]; }> | NextResponse<...>>' does not satisfy the constraint '(...args: unknown[]) => NextResponse<unknown> | Promise<NextResponse<unknown>>'.
lint: src/app/api/registrations/route.tsx#L23
Object literal may only specify known properties, and 'ects' does not exist in type 'Course'.
lint: src/app/api/registrations/route.tsx#L29
Object literal may only specify known properties, and 'ects' does not exist in type 'Course'.
lint: src/app/api/registrations/route.tsx#L35
Object literal may only specify known properties, and 'ects' does not exist in type 'Course'.
lint: src/app/api/registrations/route.tsx#L41
Object literal may only specify known properties, and 'ects' does not exist in type 'Course'.
lint: src/app/api/registrations/route.tsx#L54
Type '{ startTime: string; endTime: string; group: string; day: string; courseName: string; lecturer: string; week: "TN"; courseType: "L"; registrationName: string; }' does not satisfy the expected type 'ClassBlockProps'.
lint: src/app/api/registrations/route.tsx#L66
Type '{ startTime: string; endTime: string; day: string; group: string; courseName: string; lecturer: string; week: ""; courseType: "W"; registrationName: string; }' does not satisfy the expected type 'ClassBlockProps'.
lint: src/components/SelectGroups.tsx#L30
JSX attributes must only be assigned a non-empty 'expression'.
lint: src/pages/createplan/[id].tsx#L81
Argument of type 'null' is not assignable to parameter of type 'HTMLElement'.
lint: src/pages/createplan/[id].tsx#L235
'window.umami' is possibly 'undefined'.
lint
Process completed with exit code 1.
lint
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/