Skip to content

feat: universal router sdk integration #24924

feat: universal router sdk integration

feat: universal router sdk integration #24924

Triggered via pull request September 13, 2023 23:56
Status Failure
Total duration 1m 28s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 18 warnings
eslint: apps/web/src/hooks/usePermit2Allowance.ts#L8
`@pancakeswap/hooks` import should occur before import of `./useAccountActiveChain`
eslint: apps/web/src/hooks/usePermit2Allowance.ts#L77
Unnecessary 'else' after 'return'
eslint: apps/web/src/hooks/usePermit2Allowance.ts#L136
Unnecessary 'else' after 'return'
eslint: apps/web/src/hooks/usePermitAllowance.ts#L3
`../config/abi/permit2.json` import should occur after import of `views/Swap/V3Swap/hooks/useSendSwapTransaction`
eslint: apps/web/src/hooks/useTokenAllowance.ts#L3
'/home/runner/work/pancake-frontend/pancake-frontend/apps/web/node_modules/react/index.js' imported multiple times
eslint: apps/web/src/hooks/useTokenAllowance.ts#L9
'/home/runner/work/pancake-frontend/pancake-frontend/apps/web/node_modules/react/index.js' imported multiple times
eslint: apps/web/src/hooks/useTokenAllowance.ts#L12
`./useContract` import should occur after import of `state/transactions/hooks`
eslint: apps/web/src/hooks/useTokenAllowance.ts#L13
`./useAccountActiveChain` import should occur after import of `state/transactions/hooks`
eslint: apps/web/src/views/Swap/V3Swap/containers/SwapCommitButton.tsx#L43
`../hooks` import should occur after import of `hooks/useActiveChainId`
eslint: apps/web/src/views/Swap/V3Swap/containers/SwapCommitButton.tsx#L44
`../utils/exchange` import should occur after import of `hooks/useActiveChainId`
eslint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, Ana06/[email protected]. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
eslint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
eslint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
eslint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
eslint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
eslint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
eslint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
eslint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
eslint: apps/web/src/hooks/usePermitAllowance.ts#L27
'blocksPerFetch' is assigned a value but never used. Allowed unused vars must match /^_/u
eslint: apps/web/src/hooks/usePermitAllowance.ts#L28
Use object destructuring
eslint: apps/web/src/hooks/usePermitAllowance.ts#L93
React Hook useCallback has a missing dependency: 't'. Either include it or remove the dependency array
eslint: apps/web/src/hooks/useTokenAllowance.ts#L106
React Hook useCallback has missing dependencies: 'account' and 'chain'. Either include them or remove the dependency array
eslint: apps/web/src/utils/exchange.ts#L20
'num' is defined but never used. Allowed unused args must match /^_/u
eslint: apps/web/src/views/Swap/V3Swap/containers/SwapCommitButton.tsx#L17
'UNIVERSAL_ROUTER_ADDRESS' is defined but never used. Allowed unused vars must match /^_/u
eslint: apps/web/src/views/Swap/V3Swap/containers/SwapCommitButton.tsx#L46
'usePermit2Allowance' is defined but never used. Allowed unused vars must match /^_/u
eslint: apps/web/src/views/Swap/V3Swap/containers/SwapCommitButton.tsx#L47
'Token' is defined but never used. Allowed unused vars must match /^_/u
eslint: apps/web/src/views/Swap/V3Swap/containers/SwapCommitButton.tsx#L48
'tryParseCurrencyAmount' is defined but never used. Allowed unused vars must match /^_/u
eslint: apps/web/src/views/Swap/V3Swap/containers/SwapCommitButton.tsx#L49
'isChainSupported' is defined but never used. Allowed unused vars must match /^_/u