Skip to content

[WIP] refactor: make sequence/svgDraw typesafe #9234

[WIP] refactor: make sequence/svgDraw typesafe

[WIP] refactor: make sequence/svgDraw typesafe #9234

Triggered via pull request April 23, 2024 10:56
Status Failure
Total duration 2m 16s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 11 warnings
lint
Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '../../diagram-api/types.js'?
lint
Type '{ box: Box | undefined; name: string; description: string; wrap: boolean; prevActor: string | undefined; links: {}; properties: {}; actorCnt: null; rectData: null; type: string; }' is missing the following properties from type 'Actor': stopx, stopy, height, startx, and 4 more.
lint
Type 'Record<string, unknown>' is not assignable to type 'Record<string, string>'.
lint
Type 'unknown' is not assignable to type 'string'.
lint
Parameter 'elem' implicitly has an 'any' type.
lint
Parameter 'actor' implicitly has an 'any' type.
lint
Parameter 'conf' implicitly has an 'any' type.
lint
Parameter 'isFooter' implicitly has an 'any' type.
lint
Parameter 'elem' implicitly has an 'any' type.
lint
Parameter 'actor' implicitly has an 'any' type.
lint
Process completed with exit code 3.
lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
lint: packages/mermaid-example-diagram/src/types/index.d.ts#L5
Unexpected any. Specify a different type
lint: packages/mermaid-flowchart-elk/src/flowRenderer-elk.js#L67
'vertexNode' is defined but never used
lint: packages/mermaid-flowchart-elk/src/flowRenderer-elk.js#L191
'svgLabel' is assigned a value but never used
lint: packages/mermaid-flowchart-elk/src/flowRenderer-elk.js#L397
Expected @param names to be "edges, diagObj, graph, svg". Got "edges, g, cy, diagObj, graph, svg"
lint: packages/mermaid-flowchart-elk/src/flowRenderer-elk.js#L680
Expected @param names to be "nodeArray, parentLookupDb". Got "graph, nodeArray, parentLookupDb"
lint: packages/mermaid-zenuml/src/mermaidUtils.ts#L34
Unexpected any. Specify a different type
lint: packages/mermaid-zenuml/src/mermaidUtils.ts#L35
Unexpected any. Specify a different type
lint: packages/mermaid-zenuml/src/mermaidUtils.ts#L36
Unexpected any. Specify a different type
lint: packages/mermaid-zenuml/src/mermaidUtils.ts#L42
Unexpected any. Specify a different type
lint: packages/mermaid-zenuml/src/mermaidUtils.ts#L43
Unexpected any. Specify a different type