mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-11-20 13:06:17 +00:00
Move to @pezkuwi/dev 0.86.4 (eslint 10 toolchain)
- dev ^0.86.4 at the root and in packages/apps; directives renamed by pezkuwi-dev-migrate-eslint10. - eslint --fix with the 0.86.4 config; one fix broke syntax (typescript-eslint prefer-optional-chain turned `(isStarted && onStart) && onStart()` into `(isStarted && onStart?.();` in TxButton) and is corrected by hand. - The remaining findings fixed rather than disabled: optional chains (each suggestion reviewed), `cause` on rethrown errors, `if` instead of `a && promise` in effects, parallel instead of sequential awaits in Promise.all, Error rejections, no `delete` on arrays (the storage query cache is a Map; an upload's file list no longer keeps a hole), no `[object Object]` stringification (TFunction's second argument is text or options), dead code removed (referenda's never-shown expand button, react-query's unused CoreDescriptor).
This commit is contained in:
1 parent
c800e9affb
commit
45d479d2ec
325 files changed
+2942
-3531
No files matched your search
@@ -70,7 +70,7 @@ function StakeOther ({ nominators, stakeOther }: Props): React.ReactElement<Prop
|
||||
|
||||
return (
|
||||
<td className='expand all'>
|
||||
{(!rewarded || rewarded[0] !== 0) && (
|
||||
{(rewarded?.[0] !== 0) && (
|
||||
<ExpanderScroll
|
||||
className={rewarded ? '' : '--tmp'}
|
||||
renderChildren={rewarded?.[1]}
|
||||
|
||||
@@ -22,17 +22,17 @@ function StakingAsyncOverview ({ children, className = '', withIcon = true }: Pr
|
||||
rel='noreferrer'
|
||||
target='_blank'
|
||||
>
|
||||
this guide
|
||||
this guide
|
||||
</a>.
|
||||
<br />
|
||||
<br />
|
||||
For more information about Staking Async and AssetHub migration, please see the{' '}
|
||||
For more information about Staking Async and AssetHub migration, please see the{' '}
|
||||
<a
|
||||
href='https://docs.google.com/document/d/1XR3vL2p4QV0wC7FrlC8eN-q62BqNFTFElbj21wEmMGg/edit?tab=t.tyioldyxov9u'
|
||||
rel='noreferrer'
|
||||
target='_blank'
|
||||
>
|
||||
Asset Hub Migration FAQ
|
||||
Asset Hub Migration FAQ
|
||||
</a>.
|
||||
{children}
|
||||
</StyledArticle>
|
||||
|
||||
@@ -37,7 +37,6 @@ const useActiveNominators = () => {
|
||||
const exposedNominators = (await api.query.staking.erasStakersPaged.entries(currentEra)).map(([_, value]) => {
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-expect-error
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access
|
||||
return (value).unwrap().others.map((x) => x.who.toString());
|
||||
}).flat();
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ function Overview ({ className = '', favorites, hasAccounts, hasQueries, minComm
|
||||
);
|
||||
|
||||
useEffect((): void => {
|
||||
toggleLedger && toggleLedger();
|
||||
toggleLedger?.();
|
||||
}, [toggleLedger]);
|
||||
|
||||
const isOwn = typeIndex === 0;
|
||||
|
||||
Reference in new issue
Block a user