Skip to content

Fix formatting of long if/else chains #5344

Fix formatting of long if/else chains

Fix formatting of long if/else chains #5344

Triggered via pull request October 27, 2023 22:16
Status Failure
Total duration 54s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

ci.yml

on: pull_request
Build, test, lint
44s
Build, test, lint
Coverage
41s
Coverage
Fit to window
Zoom out
Zoom in

Annotations

14 errors and 3 warnings
Coverage
@quri/prettier-plugin-squiggle#build: command (/home/runner/work/squiggle/squiggle/packages/prettier-plugin) pnpm run build exited (1)
Coverage
Expected 1 arguments, but got 2.
Coverage
Type '"IfElseChain"' is not comparable to type '"Array" | "Dict" | "Block" | "Program" | "UnitValue" | "Call" | "InfixCall" | "UnaryCall" | "Pipe" | "DotLookup" | "BracketLookup" | "Float" | "Identifier" | "IdentifierWithAnnotation" | ... 9 more ... | "blockComment"'.
Coverage
Type '"IfElseChain"' is not comparable to type '"Array" | "Dict" | "Block" | "Program" | "UnitValue" | "Call" | "InfixCall" | "UnaryCall" | "Pipe" | "DotLookup" | "BracketLookup" | "Float" | "Identifier" | "IdentifierWithAnnotation" | ... 9 more ... | "blockComment"'.
Coverage
This comparison appears to be unintentional because the types '"Ternary"' and '"IfElseChain"' have no overlap.
Coverage
Type '"IfElseChain"' is not comparable to type '"Array" | "Dict" | "Block" | "Program" | "UnitValue" | "Call" | "InfixCall" | "UnaryCall" | "Pipe" | "DotLookup" | "BracketLookup" | "Float" | "Identifier" | "IdentifierWithAnnotation" | ... 7 more ... | "Void"'.
Coverage
Process completed with exit code 1.
Build, test, lint
@quri/prettier-plugin-squiggle#build: command (/home/runner/work/squiggle/squiggle/packages/prettier-plugin) pnpm run build exited (1)
Build, test, lint
Expected 1 arguments, but got 2.
Build, test, lint
Type '"IfElseChain"' is not comparable to type '"Array" | "Dict" | "Block" | "Program" | "UnitValue" | "Call" | "InfixCall" | "UnaryCall" | "Pipe" | "DotLookup" | "BracketLookup" | "Float" | "Identifier" | "IdentifierWithAnnotation" | ... 9 more ... | "blockComment"'.
Build, test, lint
Type '"IfElseChain"' is not comparable to type '"Array" | "Dict" | "Block" | "Program" | "UnitValue" | "Call" | "InfixCall" | "UnaryCall" | "Pipe" | "DotLookup" | "BracketLookup" | "Float" | "Identifier" | "IdentifierWithAnnotation" | ... 9 more ... | "blockComment"'.
Build, test, lint
This comparison appears to be unintentional because the types '"Ternary"' and '"IfElseChain"' have no overlap.
Build, test, lint
Type '"IfElseChain"' is not comparable to type '"Array" | "Dict" | "Block" | "Program" | "UnitValue" | "Call" | "InfixCall" | "UnaryCall" | "Pipe" | "DotLookup" | "BracketLookup" | "Float" | "Identifier" | "IdentifierWithAnnotation" | ... 7 more ... | "Void"'.
Build, test, lint
Process completed with exit code 1.
Build, test, lint: packages/components/src/components/Calculator/index.tsx#L104
React Hook useEffect has a missing dependency: '_processAllFieldCodes'. Either include it or remove the dependency array
Build, test, lint: packages/components/src/components/Calculator/index.tsx#L132
React Hook useEffect has missing dependencies: '_processAllFieldCodes', 'calculatorState', 'environment', 'path', and 'prevCalculator'. Either include them or remove the dependency array
Build, test, lint: packages/components/src/components/SquiggleViewer/ViewerProvider.tsx#L343
React Hook useCallback has missing dependencies: 'setCollapsed' and 'setLocalItemState'. Either include them or remove the dependency array