fix: typecheck #230
checks.yaml
on: pull_request
Lint, type check
11m 54s
Annotations
81 errors and 1 warning
|
Cannot find type definition file for '@types/node/ts4.8/url'.:
.yarn/cache/@angular-devkit-schematics-npm-17.3.2-cf1c70de3b-48c3828e54.zip/node_modules/@angular-devkit/schematics/src/engine/engine.d.ts#L0
Cannot find type definition file for '@types/node/ts4.8/url'.
|
Cannot find type definition file for '@types/node/ts4.8/url'.:
.yarn/cache/@angular-devkit-schematics-npm-17.3.2-cf1c70de3b-48c3828e54.zip/node_modules/@angular-devkit/schematics/src/engine/interface.d.ts#L0
Cannot find type definition file for '@types/node/ts4.8/url'.
|
Property 'readdirPromise' in type 'ZipFS' is not assignable to the same property in base type 'BasePortableFakeFS'.:
.yarn/cache/@yarnpkg-fslib-npm-2.10.4-183028824b-c683b91a17.zip/node_modules/@yarnpkg/fslib/lib/ZipFS.d.ts#L0
Property 'readdirPromise' in type 'ZipFS' is not assignable to the same property in base type 'BasePortableFakeFS'.
Type '{ (p: import("/home/runner/work/raijin/raijin/.yarn/cache/@yarnpkg-fslib-npm-2.10.4-183028824b-c683b91a17.zip/node_modules/@yarnpkg/fslib/lib/path").PortablePath): Promise<...>; (p: import("/home/runner/work/raijin/raijin/.yarn/cache/@yarnpkg-fslib-npm-2.10.4-183028824b-c683b91a17.zip/node_modules/@yarnpkg/fslib/lib...' is not assignable to type '{ (p: import("/home/runner/work/raijin/raijin/.yarn/cache/@yarnpkg-fslib-npm-2.10.4-183028824b-c683b91a17.zip/node_modules/@yarnpkg/fslib/lib/path").PortablePath): Promise<...>; (p: import("/home/runner/work/raijin/raijin/.yarn/cache/@yarnpkg-fslib-npm-2.10.4-183028824b-c683b91a17.zip/node_modules/@yarnpkg/fslib/lib...'. Two different types with this name exist, but they are unrelated.
Type 'Promise<Filename[]>' is not assignable to type 'Promise<Dirent[]>'.
Type 'Filename[]' is not assignable to type 'Dirent[]'.
Type 'Filename' is not assignable to type 'Dirent'.
Type 'String & { __pathType: PathType.File; }' is missing the following properties from type 'Dirent': isFile, isDirectory, isBlockDevice, isCharacterDevice, and 6 more.
|
Property 'readdirPromise' in type 'ZipFS' is not assignable to the same property in base type 'BasePortableFakeFS'.:
.yarn/cache/@yarnpkg-fslib-npm-2.10.4-183028824b-c683b91a17.zip/node_modules/@yarnpkg/fslib/lib/ZipFS.d.ts#L0
Property 'readdirPromise' in type 'ZipFS' is not assignable to the same property in base type 'BasePortableFakeFS'.
Type '{ (p: import("/home/runner/work/raijin/raijin/.yarn/cache/@yarnpkg-fslib-npm-2.10.4-183028824b-c683b91a17.zip/node_modules/@yarnpkg/fslib/lib/path").PortablePath): Promise<...>; (p: import("/home/runner/work/raijin/raijin/.yarn/cache/@yarnpkg-fslib-npm-2.10.4-183028824b-c683b91a17.zip/node_modules/@yarnpkg/fslib/lib...' is not assignable to type '{ (p: import("/home/runner/work/raijin/raijin/.yarn/cache/@yarnpkg-fslib-npm-2.10.4-183028824b-c683b91a17.zip/node_modules/@yarnpkg/fslib/lib/path").PortablePath): Promise<...>; (p: import("/home/runner/work/raijin/raijin/.yarn/cache/@yarnpkg-fslib-npm-2.10.4-183028824b-c683b91a17.zip/node_modules/@yarnpkg/fslib/lib...'. Two different types with this name exist, but they are unrelated.
|
Property 'readdirPromise' in type 'ZipFS' is not assignable to the same property in base type 'BasePortableFakeFS'.:
.yarn/cache/@yarnpkg-fslib-npm-2.10.4-183028824b-c683b91a17.zip/node_modules/@yarnpkg/fslib/lib/ZipFS.d.ts#L0
Property 'readdirPromise' in type 'ZipFS' is not assignable to the same property in base type 'BasePortableFakeFS'.
Type '{ (p: import("/home/runner/work/raijin/raijin/.yarn/cache/@yarnpkg-fslib-npm-2.10.4-183028824b-c683b91a17.zip/node_modules/@yarnpkg/fslib/lib/path").PortablePath): Promise<...>; (p: import("/home/runner/work/raijin/raijin/.yarn/cache/@yarnpkg-fslib-npm-2.10.4-183028824b-c683b91a17.zip/node_modules/@yarnpkg/fslib/lib...' is not assignable to type '{ (p: import("/home/runner/work/raijin/raijin/.yarn/cache/@yarnpkg-fslib-npm-2.10.4-183028824b-c683b91a17.zip/node_modules/@yarnpkg/fslib/lib/path").PortablePath): Promise<...>; (p: import("/home/runner/work/raijin/raijin/.yarn/cache/@yarnpkg-fslib-npm-2.10.4-183028824b-c683b91a17.zip/node_modules/@yarnpkg/fslib/lib...'. Two different types with this name exist, but they are unrelated.
|
Property 'readdirPromise' in type 'ZipFS' is not assignable to the same property in base type 'BasePortableFakeFS'.:
.yarn/cache/@yarnpkg-fslib-npm-2.10.4-183028824b-c683b91a17.zip/node_modules/@yarnpkg/fslib/lib/ZipFS.d.ts#L0
Property 'readdirPromise' in type 'ZipFS' is not assignable to the same property in base type 'BasePortableFakeFS'.
Type '{ (p: import("/home/runner/work/raijin/raijin/.yarn/cache/@yarnpkg-fslib-npm-2.10.4-183028824b-c683b91a17.zip/node_modules/@yarnpkg/fslib/lib/path").PortablePath): Promise<...>; (p: import("/home/runner/work/raijin/raijin/.yarn/cache/@yarnpkg-fslib-npm-2.10.4-183028824b-c683b91a17.zip/node_modules/@yarnpkg/fslib/lib...' is not assignable to type '{ (p: import("/home/runner/work/raijin/raijin/.yarn/cache/@yarnpkg-fslib-npm-2.10.4-183028824b-c683b91a17.zip/node_modules/@yarnpkg/fslib/lib/path").PortablePath): Promise<...>; (p: import("/home/runner/work/raijin/raijin/.yarn/cache/@yarnpkg-fslib-npm-2.10.4-183028824b-c683b91a17.zip/node_modules/@yarnpkg/fslib/lib...'. Two different types with this name exist, but they are unrelated.
|
Property 'readdirSync' in type 'ZipFS' is not assignable to the same property in base type 'BasePortableFakeFS'.:
.yarn/cache/@yarnpkg-fslib-npm-2.10.4-183028824b-c683b91a17.zip/node_modules/@yarnpkg/fslib/lib/ZipFS.d.ts#L0
Property 'readdirSync' in type 'ZipFS' is not assignable to the same property in base type 'BasePortableFakeFS'.
Type '{ (p: PortablePath): Filename[]; (p: PortablePath, opts: { withFileTypes: false; } | null): Filename[]; (p: PortablePath, opts: { ...; }): DirEntry[]; (p: PortablePath, opts: { ...; }): Filename[] | DirEntry[]; }' is not assignable to type '{ (p: PortablePath): Filename[]; (p: PortablePath, opts: { withFileTypes: false; } | null): Filename[]; (p: PortablePath, opts: { ...; }): Dirent[]; (p: PortablePath, opts: { ...; }): Filename[] | Dirent[]; }'.
Type 'Filename[]' is not assignable to type 'Dirent[]'.
|
Property 'readdirSync' in type 'ZipFS' is not assignable to the same property in base type 'BasePortableFakeFS'.:
.yarn/cache/@yarnpkg-fslib-npm-2.10.4-183028824b-c683b91a17.zip/node_modules/@yarnpkg/fslib/lib/ZipFS.d.ts#L0
Property 'readdirSync' in type 'ZipFS' is not assignable to the same property in base type 'BasePortableFakeFS'.
Type '{ (p: PortablePath): Filename[]; (p: PortablePath, opts: { withFileTypes: false; } | null): Filename[]; (p: PortablePath, opts: { ...; }): DirEntry[]; (p: PortablePath, opts: { ...; }): Filename[] | DirEntry[]; }' is not assignable to type '{ (p: PortablePath): Filename[]; (p: PortablePath, opts: { withFileTypes: false; } | null): Filename[]; (p: PortablePath, opts: { ...; }): Dirent[]; (p: PortablePath, opts: { ...; }): Filename[] | Dirent[]; }'.
|
Property 'readdirSync' in type 'ZipFS' is not assignable to the same property in base type 'BasePortableFakeFS'.:
.yarn/cache/@yarnpkg-fslib-npm-2.10.4-183028824b-c683b91a17.zip/node_modules/@yarnpkg/fslib/lib/ZipFS.d.ts#L0
Property 'readdirSync' in type 'ZipFS' is not assignable to the same property in base type 'BasePortableFakeFS'.
Type '{ (p: PortablePath): Filename[]; (p: PortablePath, opts: { withFileTypes: false; } | null): Filename[]; (p: PortablePath, opts: { ...; }): DirEntry[]; (p: PortablePath, opts: { ...; }): Filename[] | DirEntry[]; }' is not assignable to type '{ (p: PortablePath): Filename[]; (p: PortablePath, opts: { withFileTypes: false; } | null): Filename[]; (p: PortablePath, opts: { ...; }): Dirent[]; (p: PortablePath, opts: { ...; }): Filename[] | Dirent[]; }'.
|
Property 'readdirSync' in type 'ZipFS' is not assignable to the same property in base type 'BasePortableFakeFS'.:
.yarn/cache/@yarnpkg-fslib-npm-2.10.4-183028824b-c683b91a17.zip/node_modules/@yarnpkg/fslib/lib/ZipFS.d.ts#L0
Property 'readdirSync' in type 'ZipFS' is not assignable to the same property in base type 'BasePortableFakeFS'.
Type '{ (p: PortablePath): Filename[]; (p: PortablePath, opts: { withFileTypes: false; } | null): Filename[]; (p: PortablePath, opts: { ...; }): DirEntry[]; (p: PortablePath, opts: { ...; }): Filename[] | DirEntry[]; }' is not assignable to type '{ (p: PortablePath): Filename[]; (p: PortablePath, opts: { withFileTypes: false; } | null): Filename[]; (p: PortablePath, opts: { ...; }): Dirent[]; (p: PortablePath, opts: { ...; }): Filename[] | Dirent[]; }'.
|
Class 'PathBase' incorrectly implements class 'Dirent'. Did you mean to extend 'Dirent' and inherit its members as a subclass?:
.yarn/cache/path-scurry-npm-1.10.1-52bd946f2e-eebfb8304f.zip/node_modules/path-scurry/dist/mjs/index.d.ts#L0
Class 'PathBase' incorrectly implements class 'Dirent'. Did you mean to extend 'Dirent' and inherit its members as a subclass?
Property 'parentPath' is missing in type 'PathBase' but required in type 'Dirent'.
|
|
Type 'typeof import("/home/runner/work/raijin/raijin/.yarn/unplugged/prettier-npm-3.2.5-6859110d6a/node_modules/prettier/plugins/estree")' is not assignable to type 'string | Plugin<any>'.:
code/code-format/src/formatter.ts#L42
Type 'typeof import("/home/runner/work/raijin/raijin/.yarn/unplugged/prettier-npm-3.2.5-6859110d6a/node_modules/prettier/plugins/estree")' is not assignable to type 'string | Plugin<any>'.
|
Variable 'hook' implicitly has type 'any' in some locations where its type cannot be determined.:
code/code-schematics-worker/src/schematics.worker.content.ts#L3
Variable 'hook' implicitly has type 'any' in some locations where its type cannot be determined.
|
Variable 'hook' implicitly has an 'any' type.:
code/code-schematics-worker/src/schematics.worker.content.ts#L6
Variable 'hook' implicitly has an 'any' type.
|
|
(@typescript-eslint/no-unsafe-return): Unsafe return of an `any` typed value.:
cli/cli-ui-log-record-component/src/log-message.component.tsx#L14
Unsafe return of an `any` typed value.
|
|
(@typescript-eslint/no-empty-interface): An interface declaring no members is equivalent to its supertype.:
cli/cli-ui-log-record-component/src/log-record.component.tsx#L12
An interface declaring no members is equivalent to its supertype.
|
(react/jsx-no-leaked-render): Potential leaked value that might cause unintentionally rendered values or rendering crashes:
cli/cli-ui-log-record-component/src/log-record.component.tsx#L18
Potential leaked value that might cause unintentionally rendered values or rendering crashes
|
|
|
(@typescript-eslint/explicit-module-boundary-types): Object pattern argument should be typed.:
cli/cli-ui-parts/src/select-indicator.component.tsx#L7
Object pattern argument should be typed.
|
(react/prop-types): 'isSelected' is missing in props validation:
cli/cli-ui-parts/src/select-indicator.component.tsx#L7
'isSelected' is missing in props validation
|
|
|
(@typescript-eslint/explicit-module-boundary-types): Object pattern argument should be typed with a non-any type.:
cli/cli-ui-parts/src/select-item.component.tsx#L6
Object pattern argument should be typed with a non-any type.
|
(@typescript-eslint/consistent-type-imports): All imports in the declaration are only used as types. Use `import type`.:
cli/cli-ui-parts/src/submit-factory.component.tsx#L4
All imports in the declaration are only used as types. Use `import type`.
|
|
(@typescript-eslint/ban-types): Don't use `Function` as a type. The `Function` type accepts any function-like value.
It provides no type safety when calling the function, which can be a common source of bugs.
It also accepts things like class declarations, which will throw at runtime as they will not be called with `new`.
If you are expecting the function to accept certain arguments, you should explicitly define the function shape.:
cli/cli-ui-parts/src/submit-factory.component.tsx#L10
Don't use `Function` as a type. The `Function` type accepts any function-like value.
It provides no type safety when calling the function, which can be a common source of bugs.
It also accepts things like class declarations, which will throw at runtime as they will not be called with `new`.
If you are expecting the function to accept certain arguments, you should explicitly define the function shape.
|
|
|
(@typescript-eslint/explicit-module-boundary-types): Argument 'InjectedComponent' should be typed with a non-any type.:
cli/cli-ui-parts/src/submit-factory.component.tsx#L22
Argument 'InjectedComponent' should be typed with a non-any type.
|
|
|
(@typescript-eslint/explicit-module-boundary-types): Object pattern argument should be typed.:
cli/cli-ui-parts/src/submit-result.component.tsx#L5
Object pattern argument should be typed.
|
(react/prop-types): 'onSubmit' is missing in props validation:
cli/cli-ui-parts/src/submit-result.component.tsx#L5
'onSubmit' is missing in props validation
|
(@typescript-eslint/no-unsafe-call): Unsafe call of an `any` typed value.:
cli/cli-ui-parts/src/submit-result.component.tsx#L7
Unsafe call of an `any` typed value.
|
(@typescript-eslint/no-unsafe-return): Unsafe return of an `any` typed value.:
cli/cli-ui-stack-trace-component/src/stack-trace.component.tsx#L22
Unsafe return of an `any` typed value.
|
(@typescript-eslint/no-unsafe-call): Unsafe call of an `any` typed value.:
cli/cli-ui-stack-trace-component/src/stack-trace.component.tsx#L22
Unsafe call of an `any` typed value.
|
(@typescript-eslint/no-unsafe-call): Unsafe call of an `any` typed value.:
cli/cli-ui-stack-trace-component/src/stack-trace.component.tsx#L38
Unsafe call of an `any` typed value.
|
(@typescript-eslint/consistent-type-imports): All imports in the declaration are only used as types. Use `import type`.:
cli/cli-ui-stack-trace-component/src/utils.ts#L5
All imports in the declaration are only used as types. Use `import type`.
|
(@typescript-eslint/no-unsafe-return): Unsafe return of an `any` typed value.:
cli/cli-ui-stack-trace-component/src/utils.ts#L9
Unsafe return of an `any` typed value.
|
(@typescript-eslint/no-unused-vars): 'readFileSync' is defined but never used.:
code/code-format/src/formatter.ts#L4
'readFileSync' is defined but never used.
|
(@typescript-eslint/no-unsafe-return): Unsafe return of an `any` typed value.:
code/code-lint/src/linter.ts#L116
Unsafe return of an `any` typed value.
|
(@typescript-eslint/consistent-type-imports): All imports in the declaration are only used as types. Use `import type`.:
code/code-schematics/src/node-pnp-engine.host.ts#L8
All imports in the declaration are only used as types. Use `import type`.
|
(@typescript-eslint/consistent-type-imports): All imports in the declaration are only used as types. Use `import type`.:
code/code-schematics/src/node-pnp-engine.host.ts#L9
All imports in the declaration are only used as types. Use `import type`.
|
(@typescript-eslint/array-type): Array type using 'string[]' is forbidden. Use 'Array<string>' instead.:
code/code-schematics/src/node-pnp-engine.host.ts#L20
Array type using 'string[]' is forbidden. Use 'Array<string>' instead.
|
(@typescript-eslint/no-require-imports): A `require()` style import is forbidden.:
code/code-schematics/src/node-pnp-engine.host.ts#L54
A `require()` style import is forbidden.
|
(@typescript-eslint/no-var-requires): Require statement not part of import statement.:
code/code-schematics/src/node-pnp-engine.host.ts#L54
Require statement not part of import statement.
|
(@typescript-eslint/member-ordering): Member _resolveCollectionPath should be declared before all private instance method definitions.:
code/code-schematics/src/node-pnp-engine.host.ts#L85
Member _resolveCollectionPath should be declared before all private instance method definitions.
|
(@typescript-eslint/no-unsafe-call): Unsafe call of an `any` typed value.:
code/code-schematics/src/node-pnp-engine.host.ts#L87
Unsafe call of an `any` typed value.
|
|
(@typescript-eslint/member-ordering): Member _resolveReferenceString should be declared before all private instance method definitions.:
code/code-schematics/src/node-pnp-engine.host.ts#L93
Member _resolveReferenceString should be declared before all private instance method definitions.
|
|
(@typescript-eslint/ban-types): Don't use `{}` as a type. `{}` actually means "any non-nullish value".
- If you want a type meaning "any object", you probably want `object` instead.
- If you want a type meaning "any value", you probably want `unknown` instead.
- If you want a type meaning "empty object", you probably want `Record<string, never>` instead.
- If you really want a type meaning "any non-nullish value", you probably want `NonNullable<unknown>` instead.:
code/code-schematics/src/node-pnp-engine.host.ts#L94
Don't use `{}` as a type. `{}` actually means "any non-nullish value".
- If you want a type meaning "any object", you probably want `object` instead.
- If you want a type meaning "any value", you probably want `unknown` instead.
- If you want a type meaning "empty object", you probably want `Record<string, never>` instead.
- If you really want a type meaning "any non-nullish value", you probably want `NonNullable<unknown>` instead.
|
(@typescript-eslint/member-ordering): Member _transformCollectionDescription should be declared before all private instance method definitions.:
code/code-schematics/src/node-pnp-engine.host.ts#L103
Member _transformCollectionDescription should be declared before all private instance method definitions.
|
(@typescript-eslint/member-ordering): Member _transformSchematicDescription should be declared before all private instance method definitions.:
code/code-schematics/src/node-pnp-engine.host.ts#L118
Member _transformSchematicDescription should be declared before all private instance method definitions.
|
(@typescript-eslint/consistent-type-imports): All imports in the declaration are only used as types. Use `import type`.:
code/code-schematics/src/schematics.ts#L5
All imports in the declaration are only used as types. Use `import type`.
|
(@typescript-eslint/consistent-type-imports): All imports in the declaration are only used as types. Use `import type`.:
code/code-schematics/src/schematics.ts#L7
All imports in the declaration are only used as types. Use `import type`.
|
(@typescript-eslint/explicit-module-boundary-types): Missing return type on function.:
code/code-schematics/src/schematics.ts#L24
Missing return type on function.
|
(@typescript-eslint/explicit-function-return-type): Missing return type on function.:
code/code-schematics/src/schematics.ts#L24
Missing return type on function.
|
(@typescript-eslint/explicit-function-return-type): Missing return type on function.:
code/code-schematics/src/schematics.ts#L33
Missing return type on function.
|
(@typescript-eslint/explicit-module-boundary-types): Missing return type on function.:
code/code-schematics/src/schematics.ts#L60
Missing return type on function.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Lint, type check
Process completed with exit code 1.
|
Lint, type check
Process completed with exit code 1.
|
(security/detect-non-literal-require): Found non-literal argument in require:
code/code-schematics/src/node-pnp-engine.host.ts#L54
Found non-literal argument in require
|