fix/schematic #375
Errors 10
Found 10 errors
Annotations
github-actions / TypeCheck
Module '"@atls/schematics"' has no exported member 'ProjectType'.
Module '"@atls/schematics"' has no exported member 'ProjectType'.
Raw output
8 | import React from 'react'
9 |
> 10 | import { ProjectType } from '@atls/schematics'
| ^
11 |
12 | interface SubmitProps {
13 | onSubmit: (props: ProjectInformationProperties) => void
Check failure on line 7 in schematics/schematics/src.bak/utils/yaml.utils.ts
github-actions / TypeCheck
Could not find a declaration file for module 'js-yaml'. '/home/runner/work/raijin/raijin/.yarn/cache/js-yaml-npm-4.1.0-3606f32312-c138a34a3f.zip/node_modules/js-yaml/dist/js-yaml.mjs' implicitly has an 'any' type.
Could not find a declaration file for module 'js-yaml'. '/home/runner/work/raijin/raijin/.yarn/cache/js-yaml-npm-4.1.0-3606f32312-c138a34a3f.zip/node_modules/js-yaml/dist/js-yaml.mjs' implicitly has an 'any' type.
If the 'js-yaml' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/js-yaml'
Raw output
5 | import type { Tree } from '@angular-devkit/schematics'
6 |
> 7 | import { load } from 'js-yaml'
| ^
8 | import { dump } from 'js-yaml'
9 |
10 | export const readYamlInTree = <T = any>(host: Tree, path: string): T => {
Check failure on line 8 in schematics/schematics/src.bak/utils/yaml.utils.ts
github-actions / TypeCheck
Could not find a declaration file for module 'js-yaml'. '/home/runner/work/raijin/raijin/.yarn/cache/js-yaml-npm-4.1.0-3606f32312-c138a34a3f.zip/node_modules/js-yaml/dist/js-yaml.mjs' implicitly has an 'any' type.
Could not find a declaration file for module 'js-yaml'. '/home/runner/work/raijin/raijin/.yarn/cache/js-yaml-npm-4.1.0-3606f32312-c138a34a3f.zip/node_modules/js-yaml/dist/js-yaml.mjs' implicitly has an 'any' type.
If the 'js-yaml' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/js-yaml'
Raw output
6 |
7 | import { load } from 'js-yaml'
> 8 | import { dump } from 'js-yaml'
| ^
9 |
10 | export const readYamlInTree = <T = any>(host: Tree, path: string): T => {
11 | if (!host.exists(path)) {
Check failure on line 6 in schematics/schematics/src/rules/update-ts-config.rule.ts
github-actions / TypeCheck
Property 'default' does not exist on type '{ compilerOptions: { lib: string[]; declaration: boolean; emitDecoratorMetadata: boolean; experimentalDecorators: boolean; esModuleInterop: boolean; forceConsistentCasingInFileNames: boolean; ... 18 more ...; outDir: string; }; exclude: string[]; }'.
Property 'default' does not exist on type '{ compilerOptions: { lib: string[]; declaration: boolean; emitDecoratorMetadata: boolean; experimentalDecorators: boolean; esModuleInterop: boolean; forceConsistentCasingInFileNames: boolean; ... 18 more ...; outDir: string; }; exclude: string[]; }'.
Raw output
4 |
5 | export const updateTsConfigRule = updateTsConfigInTree({
> 6 | ...tsconfig.default.compilerOptions,
| ^
7 | })
8 |
Check failure on line 7 in schematics/schematics/src/utils/yaml.utils.ts
github-actions / TypeCheck
Could not find a declaration file for module 'js-yaml'. '/home/runner/work/raijin/raijin/.yarn/cache/js-yaml-npm-4.1.0-3606f32312-c138a34a3f.zip/node_modules/js-yaml/dist/js-yaml.mjs' implicitly has an 'any' type.
Could not find a declaration file for module 'js-yaml'. '/home/runner/work/raijin/raijin/.yarn/cache/js-yaml-npm-4.1.0-3606f32312-c138a34a3f.zip/node_modules/js-yaml/dist/js-yaml.mjs' implicitly has an 'any' type.
If the 'js-yaml' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/js-yaml'
Raw output
5 | import type { Tree } from '@angular-devkit/schematics'
6 |
> 7 | import { load } from 'js-yaml'
| ^
8 | import { dump } from 'js-yaml'
9 |
10 | export const readYamlInTree = <T = any>(host: Tree, path: string): T => {
Check failure on line 8 in schematics/schematics/src/utils/yaml.utils.ts
github-actions / TypeCheck
Could not find a declaration file for module 'js-yaml'. '/home/runner/work/raijin/raijin/.yarn/cache/js-yaml-npm-4.1.0-3606f32312-c138a34a3f.zip/node_modules/js-yaml/dist/js-yaml.mjs' implicitly has an 'any' type.
Could not find a declaration file for module 'js-yaml'. '/home/runner/work/raijin/raijin/.yarn/cache/js-yaml-npm-4.1.0-3606f32312-c138a34a3f.zip/node_modules/js-yaml/dist/js-yaml.mjs' implicitly has an 'any' type.
If the 'js-yaml' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/js-yaml'
Raw output
6 |
7 | import { load } from 'js-yaml'
> 8 | import { dump } from 'js-yaml'
| ^
9 |
10 | export const readYamlInTree = <T = any>(host: Tree, path: string): T => {
11 | if (!host.exists(path)) {
Check failure on line 50 in yarn/plugin-schematics/sources/collection/src/project/project.factory.ts
github-actions / TypeCheck
Argument of type '(Rule | Rule)[]' is not assignable to parameter of type 'Iterable<Rule> | AsyncIterable<Rule>'.
Argument of type '(Rule | Rule)[]' is not assignable to parameter of type 'Iterable<Rule> | AsyncIterable<Rule>'.
Type '(Rule | Rule)[]' is not assignable to type 'Iterable<Rule>'.
The types returned by '[Symbol.iterator]().next(...)' are incompatible between these types.
Type 'IteratorResult<Rule | Rule, any>' is not assignable to type 'IteratorResult<Rule, any>'.
Type 'IteratorYieldResult<Rule | Rule>' is not assignable to type 'IteratorResult<Rule, any>'.
Type 'IteratorYieldResult<Rule | Rule>' is not assignable to type 'IteratorYieldResult<Rule>'.
Type 'Rule | Rule' is not assignable to type 'Rule'.
Type 'import("/home/runner/work/raijin/raijin/.yarn/cache/@angular-devkit-schematics-npm-18.2.2-4714d23333-6fc2456222.zip/node_modules/@angular-devkit/schematics/src/engine/interface").Rule' is not assignable to type 'import("/home/runner/work/raijin/raijin/.yarn/cache/@angular-devkit-schematics-npm-19.1.5-d828b63554-b5e2fd222f.zip/node_modules/@angular-devkit/schematics/src/engine/interface").Rule'.
Types of parameters 'context' and 'context' are incompatible.
Type 'import("/home/runner/work/raijin/raijin/.yarn/cache/@angular-devkit-schematics-npm-19.1.5-d828b63554-b5e2fd222f.zip/node_modules/@angular-devkit/schematics/src/engine/interface").SchematicContext' is not assignable to type 'import("/home/runner/work/raijin/raijin/.yarn/cache/@angular-devkit-schematics-npm-18.2.2-4714d23333-6fc2456222.zip/node_modules/@angular-devkit/schematics/src/engine/interface").SchematicContext'.
The types of 'engine.createCollection(...).createSchematic(...).call' are incompatible between these types.
Type '<OptionT extends object>(options: OptionT, host: import("/home/runner/work/raijin/raijin/.yarn/cache/rxjs-npm-7.8.1-41c443a75b-b10cac1a52.zip/node_modules/rxjs/dist/types/internal/Observable").Observable<import("/home/runner/work/raijin/raijin/.yarn/cache/@angular-devkit-schematics-npm-19.1.5-d828b63554-b5e2fd222f.z...' is not assignable to type '<OptionT extends object>(options: OptionT, host: import("/home/runner/work/raijin/raijin/.yarn/cache/rxjs-npm-7.8.1-41c443a75b-b10cac1a52.zip/node_modules/rxjs/dist/types/internal/Observable").Observable<import("/home/runner/work/raijin/raijin/.yarn/cache/@angular-devkit-schematics-npm-18.2.2-4714d23333-6fc2456222.z...'.
Types of parameters 'parentContext' and 'parentContext' are incompatible.
Type 'Partial<import("/home/runner/work/raijin/raijin/.yarn/cache/@angular-devkit-schematics-npm-18.2.2-4714d23333-6fc2456222.zip/node_modules/@angular-devkit/schematics/src/engine/interface").TypedSchematicContext<{}, {}>> | undefined' is not assignable to type 'Partial<import("/home/runner/work/raijin/raijin/.yarn/cache/@angular-devkit-schematics-npm-19.1.5-d828b63554-b5e2fd222f.zip/node_modules/@angular-devkit/schematics/src/engine/interface").TypedSchematicContext<{}, {}>> | undefined'.
Type 'Partial<import("/home/runner/work/raijin/raijin/.yarn/cache/@angular-devkit-schematics-npm-18.2.2-4714d23333-6fc2456222.zip/node_modules/@angular-devkit/schematics/src/engine/interface").TypedSchematicContext<{}, {}>>' is not assignable to type 'Partial<import("/home/runner/work/raijin/raijin/.yarn/cache/@angular-devkit-schematics-npm-19.1.5-d828b63554-b5e2fd222f.zip/node_modules/@angular-devkit/schematics/src/engine/interface").TypedSchematicContext<{}, {}>>'.
Types of property 'engine' are incompatible.
Type 'import("/home/runner/work/raijin/raijin/.yarn/cache/@angular-devkit-schematics-npm-18.2.2-4714d23333-6fc2456222.zip/node_modules/@angular-devkit/schematics/src/engine/interface").Engine<{}, {}> | undefined' is not assignable to type 'import("/home/runner/work/raijin/raijin/.yarn/cache/@angular-devkit-schematics-npm-19.1.5-d828b63554-b5e2fd222f.zip/node_modules/@angular-devkit/schematics/src/engine/interface").Engine<{}, {}> | undefined'.
Type 'import("/home/runner/work/raijin/raijin/.yarn/cache/@angular-devkit-schematics-npm-18.2.2-4714d23333-6fc2456222.zip/node_modules/@angular-devkit/schematics/src/engine/interface").Engine<{}, {}>' is not assignable to type 'import("/home/runner/work/raijin/raijin/.yarn/cache/@angular-devkit-schematics-npm-19.1.5-d828b63554-b5e2fd222f.zip/node_modules/@angular-devkit/schematics/src/engine/interface").Engine<{}, {}>'.
Raw output
48 |
49 | export const main = (options: any) =>
> 50 | chain([
| ^
51 | mergeWith(generateCommon(options), MergeStrategy.Overwrite),
52 | mergeWith(generateProjectSpecifiec(options), MergeStrategy.Overwrite),
53 | updateTsConfig,
Check failure on line 1 in yarn/plugin-schematics/sources/commands/index.ts
github-actions / TypeCheck
An import path can only end with a '.tsx' extension when 'allowImportingTsExtensions' is enabled.
An import path can only end with a '.tsx' extension when 'allowImportingTsExtensions' is enabled.
Raw output
> 1 | export * from './generate-project.command.tsx'
| ^
2 |
Check failure on line 12 in yarn/plugin-schematics/sources/getters/stream-report-callback.getter.ts
github-actions / TypeCheck
Parameter 'options' implicitly has an 'any' type.
Parameter 'options' implicitly has an 'any' type.
Raw output
10 | type StreamReportCallbackType = Parameters<typeof StreamReport.start>[1];
11 |
> 12 | export const getStreamReportCallback = (options): StreamReportCallbackType => {
| ^
13 | const streamReportCallback = async (report: StreamReport): Promise<void> => {
14 | // TODO например у линта свой компонент для прогресса. как сделать тут?
15 | // await report.startTimerPromise("Init Project", async () => {
Check failure on line 1 in yarn/plugin-schematics/sources/helpers/events-log.helper.ts
github-actions / TypeCheck
Parameter 'event' implicitly has an 'any' type.
Parameter 'event' implicitly has an 'any' type.
Raw output
> 1 | export const eventsLogHelper = (event) => {
| ^
2 | const eventPath = event.path
3 |
4 | switch (event.kind) {