Skip to content

feat(bonsai-core): add operation types, organize abacus-ts #5299

feat(bonsai-core): add operation types, organize abacus-ts

feat(bonsai-core): add operation types, organize abacus-ts #5299

Triggered via pull request January 9, 2025 23:25
Status Failure
Total duration 3m 9s
Artifacts

commitlint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 11 warnings
lint: src/abacus-ts/calculators/blockRewards.ts#L1
Replace `import·{·IndexerHistoricalBlockTradingReward·}·from·'@/types/indexer/indexerApiGen';⏎import·{·keyBy,·maxBy·}·from·'lodash` with `import·{·keyBy,·maxBy·}·from·'lodash';⏎⏎import·{·IndexerHistoricalBlockTradingReward·}·from·'@/types/indexer/indexerApiGen`
lint: src/abacus-ts/calculators/fills.ts#L1
Delete `import·{·IndexerCompositeFillObject·}·from·'@/types/indexer/indexerManual';⏎`
lint: src/abacus-ts/calculators/fills.ts#L4
Insert `';⏎import·{·IndexerCompositeFillObject·}·from·'@/types/indexer/indexerManual`
lint: src/abacus-ts/calculators/transfers.ts#L1
Delete `import·{·IndexerTransferCommonResponseObject·}·from·'@/types/indexer/indexerManual';⏎`
lint: src/abacus-ts/calculators/transfers.ts#L4
Insert `';⏎import·{·IndexerTransferCommonResponseObject·}·from·'@/types/indexer/indexerManual`
lint: src/abacus-ts/rest/funding.ts#L1
Delete `import·{·IndexerHistoricalFundingResponse·}·from·'@/types/indexer/indexerApiGen';⏎`
lint: src/abacus-ts/rest/funding.ts#L4
Insert `';⏎import·{·IndexerHistoricalFundingResponse·}·from·'@/types/indexer/indexerApiGen`
lint: src/abacus-ts/rest/orders.ts#L1
Replace `import·{·isParentSubaccountOrders·}·from·'@/types/indexer/indexerChecks';⏎import·{·keyBy·}·from·'lodash` with `import·{·keyBy·}·from·'lodash';⏎⏎import·{·isParentSubaccountOrders·}·from·'@/types/indexer/indexerChecks`
lint: src/abacus-ts/selectors/account.ts#L1
Delete `import·{·IndexerPerpetualPositionStatus·}·from·'@/types/indexer/indexerApiGen';⏎`
lint: src/abacus-ts/selectors/account.ts#L5
Insert `';⏎import·{·IndexerPerpetualPositionStatus·}·from·'@/types/indexer/indexerApiGen`
lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
lint: src/abacus-ts/rest/blockTradingRewards.ts#L23
Unnecessary conditional, the types have no overlap
lint: src/abacus-ts/rest/fills.ts#L19
Unnecessary conditional, the types have no overlap
lint: src/abacus-ts/rest/lib/useIndexer.ts#L31
React Hook useEffect has a missing dependency: 'dispatch'. Either include it or remove the dependency array
lint: src/abacus-ts/rest/lib/useIndexer.ts#L56
React Hook useEffect has a missing dependency: 'dispatch'. Either include it or remove the dependency array
lint: src/abacus-ts/rest/orders.ts#L20
Unnecessary conditional, the types have no overlap
lint: src/abacus-ts/rest/orders.ts#L43
Unnecessary conditional, expected left-hand side of `??` operator to be possibly null or undefined
lint: src/abacus-ts/rest/transfers.ts#L20
Unnecessary conditional, the types have no overlap
lint: src/abacus-ts/websocket/parentSubaccount.ts#L234
Unnecessary conditional, the types have no overlap
lint: src/components/Button.tsx#L228
Unnecessary conditional, value is always truthy
lint: src/components/ComboboxMenu.tsx#L203
Unnecessary conditional, expected left-hand side of `??` operator to be possibly null or undefined