refactor: replace deprecated API pool.allTokens by allPoolTokens function #246
Annotations
12 warnings
Setup
Unexpected input(s) 'node-version', valid inputs are ['version', 'dest', 'run_install', 'package_json_file', 'standalone']
|
Post Setup
Unexpected input(s) 'node-version', valid inputs are ['version', 'dest', 'run_install', 'package_json_file', 'standalone']
|
Run lint:
packages/lib/modules/pool/PoolDetail/PoolActivityTable/PoolActivityTableRow.tsx#L88
Do not use Array index in keys
|
Run lint:
packages/lib/modules/pool/PoolDetail/PoolComposition/PoolComposition.tsx#L80
Do not define components during render. React will see a new component type on every render and destroy the entire subtree’s DOM nodes and state (https://reactjs.org/docs/reconciliation.html#elements-of-different-types). Instead, move this component definition out of the parent component “PoolComposition” and pass data as props
|
Run lint:
packages/lib/modules/pool/PoolDetail/PoolInfo/PoolContracts.tsx#L123
Do not use Array index in keys
|
Run lint:
packages/lib/modules/pool/categories/PoolCategories.tsx#L26
Do not define components during render. React will see a new component type on every render and destroy the entire subtree’s DOM nodes and state (https://reactjs.org/docs/reconciliation.html#elements-of-different-types). Instead, move this component definition out of the parent component “PoolCategoryBadge” and pass data as props
|
Run lint:
packages/lib/modules/portfolio/PortfolioTable/PortfolioTableHeader.tsx#L41
Do not use Array index in keys
|
Run lint:
packages/lib/modules/price-impact/PriceImpactProvider.tsx#L59
Fragments should contain more than one child - otherwise, there’s no need for a Fragment at all
|
Run lint:
packages/lib/modules/swap/PoolSwapCard.tsx#L14
This line has a length of 135. Maximum allowed is 120
|
Run lint:
packages/lib/modules/tokens/TokenBalancesProvider.tsx#L42
useState call is not destructured into value + setter pair
|
Run lint:
packages/lib/modules/tokens/TokenRow/TokenRow.tsx#L149
React Hook useEffect has missing dependencies: 'abbreviated', 'isBpt', 'pool', 'token', and 'usdValueForToken'. Either include them or remove the dependency array. If 'setUsdValue' needs the current value of 'pool', you can also switch to useReducer instead of useState and read 'pool' in the reducer
|
Run lint:
packages/lib/modules/tokens/TokenRow/TokenRowGroup.tsx#L50
Do not use Array index in keys
|
Loading