Skip to content

fix:解决merge后的一系列神奇的问题 #89

fix:解决merge后的一系列神奇的问题

fix:解决merge后的一系列神奇的问题 #89

Triggered via pull request August 23, 2024 17:01
@eleliaukeleliauk
synchronize #40
eleliauk:main
Status Failure
Total duration 1m 6s
Artifacts

lint_and_format_check.yml

on: pull_request
lint-and-format
57s

Annotations

10 errors and 10 warnings
lint-and-format: src/pages/classInfo/index.tsx#L32
Unexpected any. Specify a different type
lint-and-format: src/pages/classInfo/index.tsx#L33
Unexpected any. Specify a different type
lint-and-format: src/pages/classInfo/index.tsx#L66
Unsafe assignment of an error typed value
lint-and-format: src/pages/classInfo/index.tsx#L158
React Hook "useState" is called in function "index" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use"
lint-and-format: src/pages/classInfo/index.tsx#L160
React Hook "useEffect" is called in function "index" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use"
lint-and-format: src/pages/classInfo/index.tsx#L161
Async arrow function 'getCourseData' has no 'await' expression
lint-and-format: src/pages/classInfo/index.tsx#L163
Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
lint-and-format: src/pages/classInfo/index.tsx#L165
Unsafe argument of type `any` assigned to a parameter of type `SetStateAction<Course | null>`
lint-and-format: src/pages/classInfo/index.tsx#L165
Unsafe member access .data on an `any` value
lint-and-format: src/pages/classInfo/index.tsx#L173
Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
lint-and-format: src/api/get.ts#L30
Unexpected console statement
lint-and-format: src/api/get.ts#L33
Unexpected console statement
lint-and-format: src/api/get.ts#L37
Unexpected console statement
lint-and-format: src/api/getUserCourses.ts#L30
Unexpected console statement
lint-and-format: src/api/getUserCourses.ts#L33
Unexpected console statement
lint-and-format: src/api/getUserCourses.ts#L37
Unexpected console statement
lint-and-format: src/api/handleLogin.ts#L42
Unexpected console statement
lint-and-format: src/api/handleLogin.ts#L44
Unexpected console statement
lint-and-format: src/api/handleLogin.ts#L52
Unexpected console statement
lint-and-format: src/api/handleLogin.ts#L54
Unexpected console statement