fix lint #145
lint.yml
on: push
pnpm_install
33s
Matrix: lint
Matrix: typecheck
Annotations
17 errors and 10 warnings
typecheck (backend)
Type '{ readonly tags: readonly ["admin"]; readonly requireCredential: true; readonly requireAdmin: true; readonly res: { readonly type: "object"; readonly properties: { readonly name: { readonly type: "string"; readonly nullable: false; readonly optional: false; }; ... 4 more ...; readonly forward: { ...; }; }; }; readon...' does not satisfy the constraint 'IEndpointMeta'.
|
typecheck (backend)
Type '{ readonly requireCrendential: true; readonly requireAdmin: true; readonly errors: { readonly resolverNotFound: { readonly message: "Resolver not found."; readonly code: "RESOLVER_NOT_FOUND"; readonly id: "121fbea9-3e49-4456-998a-d4095c7ac5c5"; }; }; }' does not satisfy the constraint 'IEndpointMeta'.
|
typecheck (backend)
Type '{ readonly requireCredential: true; readonly requireAdmin: true; readonly res: { readonly type: "array"; readonly items: { readonly type: "object"; readonly properties: { readonly name: { readonly type: "string"; readonly nullable: false; readonly optional: false; }; ... 4 more ...; readonly forward: { ...; }; }; };...' does not satisfy the constraint 'IEndpointMeta'.
|
typecheck (backend)
Type '{ readonly requireCredential: true; readonly requireAdmin: true; readonly errors: { readonly resolverNotFound: { readonly message: "Resolver not found."; readonly id: "fd32710e-75e1-4d20-bbd2-f89029acb16e"; readonly code: "RESOLVER_NOT_FOUND"; }; readonly invalidRegularExpressionForTargetUser: { ...; }; readonly inv...' does not satisfy the constraint 'IEndpointMeta'.
|
typecheck (backend)
Argument of type '(ps: SchemaType<{ readonly type: "object"; readonly properties: { readonly userId: { readonly type: "string"; readonly format: "misskey:id"; }; readonly groupId: { readonly type: "string"; readonly format: "misskey:id"; }; readonly limit: { ...; }; readonly sinceId: { ...; }; readonly untilId: { ...; }; readonly mar...' is not assignable to parameter of type 'Executor<{ readonly tags: readonly ["messaging"]; readonly requireCredential: true; readonly kind: "read:messaging"; readonly res: { readonly type: "array"; readonly optional: false; readonly nullable: false; readonly items: { ...; }; }; readonly errors: { ...; }; }, { ...; }>'.
|
typecheck (backend)
Not all code paths return a value.
|
typecheck (backend)
Argument of type '(ps: {} & { noteId: string; targetLang: string; } & { noteId?: string | undefined; targetLang?: string | undefined; }, me: MiLocalUser) => Promise<204 | { sourceLang: string; text: string; translator: string[]; } | { ...; }>' is not assignable to parameter of type 'Executor<{ readonly tags: readonly ["notes"]; readonly requireCredential: true; readonly kind: "read:account"; readonly res: { readonly type: "object"; readonly optional: false; readonly nullable: false; readonly properties: { ...; }; }; readonly errors: { ...; }; }, { ...; }>'.
|
typecheck (backend)
Argument of type '(ps: {} & { userId: string; targetLang: string; } & { userId?: string | undefined; targetLang?: string | undefined; }, me: MiLocalUser) => Promise<204 | { sourceLang: string; text: string; translator: string[]; } | { ...; }>' is not assignable to parameter of type 'Executor<{ readonly tags: readonly ["users"]; readonly requireCredential: true; readonly kind: "read:account"; readonly res: { readonly type: "object"; readonly optional: false; readonly nullable: false; readonly properties: { ...; }; }; readonly errors: { ...; }; }, { ...; }>'.
|
typecheck (backend)
Property 'kind' is missing in type 'MessagingChannelService' but required in type 'MiChannelService<boolean>'.
|
typecheck (backend)
Property 'kind' is missing in type 'MessagingIndexChannelService' but required in type 'MiChannelService<boolean>'.
|
lint (frontend):
packages/frontend/src/pages/about.vue#L28
Mixed spaces and tabs
|
lint (frontend):
packages/frontend/src/pages/about.vue#L29
Mixed spaces and tabs
|
lint (frontend):
packages/frontend/src/pages/about.vue#L30
Mixed spaces and tabs
|
lint (frontend):
packages/frontend/src/pages/about.vue#L31
Mixed spaces and tabs
|
lint (frontend):
packages/frontend/src/pages/about.vue#L116
A space is required after '{'
|
lint (frontend):
packages/frontend/src/pages/about.vue#L116
A space is required before '}'
|
lint (frontend)
Process completed with exit code 1.
|
lint (cherrypick-js):
packages/cherrypick-js/src/acct.ts#L7
Assignment to function parameter 'acct'
|
lint (cherrypick-js):
packages/cherrypick-js/src/api.ts#L17
Unexpected any. Specify a different type
|
lint (cherrypick-js):
packages/cherrypick-js/src/api.ts#L20
Unexpected any. Specify a different type
|
lint (cherrypick-js):
packages/cherrypick-js/src/api.ts#L32
Unexpected any. Specify a different type
|
lint (cherrypick-js):
packages/cherrypick-js/src/api.types.ts#L12
Unexpected any. Specify a different type
|
lint (cherrypick-js):
packages/cherrypick-js/src/api.types.ts#L12
Unexpected any. Specify a different type
|
lint (cherrypick-js):
packages/cherrypick-js/src/api.types.ts#L13
Unexpected any. Specify a different type
|
lint (cherrypick-js):
packages/cherrypick-js/src/api.types.ts#L22
Unexpected any. Specify a different type
|
lint (cherrypick-js):
packages/cherrypick-js/src/api.types.ts#L27
Unexpected any. Specify a different type
|
lint (cherrypick-js):
packages/cherrypick-js/src/consts.ts#L140
Unexpected any. Specify a different type
|