🐞 fix:再修复eslint的error #28
lint_and_format_check.yml
on: push
lint-and-format
46s
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
|