Skip to content

move types to types file #40

move types to types file

move types to types file #40

Triggered via push April 23, 2024 08:50
Status Failure
Total duration 1m 43s
Artifacts

lint.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

13 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: packages/mermaid/src/diagrams/common/commonTypes.ts#L1
All imports in the declaration are only used as types. Use `import type`
Lint failure
Running `pnpm run lint` failed. Running `pnpm -w run lint:fix` may fix this issue. If this error doesn't occur on your local machine, make sure your packages are up-to-date by running `pnpm install`. You may also need to delete your prettier cache by running `rm ./node_modules/.cache/prettier/.prettier-cache`.
lint
Process completed with exit code 1.
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