Skip to content

* fix all violations of eslint rules #88

* fix all violations of eslint rules

* fix all violations of eslint rules #88

Triggered via push June 6, 2024 19:00
Status Failure
Total duration 1m 3s
Artifacts

fe.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

18 errors and 10 warnings
codechecks
Process completed with exit code 1.
tsc
Argument of type '{ accessKey: string; readonly accessKeyLabel: string; autocapitalize: string; dir: string; draggable: boolean; hidden: boolean; inert: boolean; innerText: string; lang: string; readonly offsetHeight: number; ... 290 more ...; focus: (options?: FocusOptions | undefined) => void; }[]' is not assignable to parameter of type 'HTMLElement[]'.
tsc
Cannot find module '../paginations/usePaginationButtons' or its corresponding type declarations.
tsc
Property '$route' does not exist on type 'CreateComponentPublicInstance<Readonly<ExtractPropTypes<__VLS_TypePropsToOption<{ page: string; uid: string; name: string; displayName: string; }>>>, { ...; }, ... 17 more ..., {}>'.
tsc
Type '{ errorCode: number; errorInfo: string | Record<string, unknown[]>; }' is not assignable to type 'ApiErrorClass | null'.
tsc
Module '"@/api"' has no exported member 'apiUsers'.
tsc
Property 'page' does not exist on type '{ readonly cursor: "/cursor"; }'.
tsc
Process completed with exit code 2.
eslint: fe/src/App.vue#L40
Parse errors in imported module 'ant-design-vue/es/locale/zh_CN': parserPath or languageOptions.parser is required! (undefined:undefined)
eslint: fe/src/components/Post/PostNav.vue#L56
Parse errors in imported module 'scroll-into-view-if-needed': parserPath or languageOptions.parser is required! (undefined:undefined)
eslint: fe/src/components/Post/renderers/list/ReplyItem.vue#L73
Unsafe assignment of an `any` value
eslint: fe/src/components/Post/renderers/list/SubReplyGroup.vue#L51
Unsafe assignment of an `any` value
eslint: fe/src/components/Post/renderers/list/ThreadItem.vue#L103
Unsafe assignment of an `any` value
eslint: fe/src/components/User/UserPage.vue#L23
Unable to resolve path to module '../paginations/usePaginationButtons'
eslint: fe/src/components/User/UserPage.vue#L23
Missing file extension for "../paginations/usePaginationButtons"
eslint: fe/src/components/User/UserPage.vue#L33
Unsafe assignment of an `any` value
eslint: fe/src/components/User/UserPage.vue#L33
Unsafe call of an `any` typed value
eslint: fe/src/main.ts#L8
`bootstrap` import should occur before import of `vue`
eslint: fe/src/App.vue#L40
Parse errors in imported module 'ant-design-vue/es/locale/zh_CN': parserPath or languageOptions.parser is required! (undefined:undefined)
eslint: fe/src/App.vue#L40
Parse errors in imported module 'ant-design-vue/es/locale/zh_CN': parserPath or languageOptions.parser is required! (undefined:undefined)
eslint: fe/src/components/Post/PostNav.vue#L56
Parse errors in imported module 'scroll-into-view-if-needed': parserPath or languageOptions.parser is required! (undefined:undefined)
eslint: fe/src/components/Post/PostNav.vue#L56
Parse errors in imported module 'scroll-into-view-if-needed': parserPath or languageOptions.parser is required! (undefined:undefined)
eslint: fe/src/components/Post/renderers/RendererTable.vue#L54
'v-html' directive can lead to XSS attack
eslint: fe/src/components/Post/renderers/RendererTable.vue#L74
'v-html' directive can lead to XSS attack
eslint: fe/src/components/Post/renderers/list/ReplyItem.vue#L36
'v-html' directive can lead to XSS attack
eslint: fe/src/components/Post/renderers/list/SubReplyGroup.vue#L26
'v-html' directive can lead to XSS attack
eslint: fe/src/shared/tippy.ts#L1
Parse errors in imported module 'tippy.js': parserPath or languageOptions.parser is required! (undefined:undefined)
eslint: fe/src/shared/tippy.ts#L1
Parse errors in imported module 'tippy.js': parserPath or languageOptions.parser is required! (undefined:undefined)