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:
Satoshi Qazi Muhammed authored and SatoshiQaziMuhammed committed 2026-10-10 02:06:12 +04:00
1 parent c800e9affb
commit 45d479d2ec
325 files changed
+2942 -3531

No files matched your search

-2
View File
@@ -226,10 +226,8 @@ async function getLightProvider (chain: string): Promise<ScProvider> {
return relay;
}
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const specMod = await import(`${lightSpecs[relayName][paraName]}`);
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
return new ScProvider(Sc, JSON.stringify(specMod.default), relay);
}
-1
View File
@@ -24,7 +24,6 @@ export default function withApi <P extends ApiProps> (Inner: React.ComponentType
{...defaultProps}
{...(apiProps as any)}
{...this.props}
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
ref={this.component}
/>
);
-6
View File
@@ -3,12 +3,6 @@
// SInce this file is deemed deprecated (and awaiting removal), we just don't care
/* eslint-disable @typescript-eslint/no-unsafe-call */
/* eslint-disable @typescript-eslint/restrict-template-expressions */
/* eslint-disable @typescript-eslint/no-unsafe-return */
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
import type { ApiProps, CallState as State, OnChangeCb, SubtractProps } from '../types.js';
import type { Options } from './types.js';
-2
View File
@@ -12,10 +12,8 @@ interface Props<T> extends BaseProps<T> {
callResult?: T;
}
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export default function withCallDiv<T> (endpoint: string, options: Options = {}) {
return (render: (value?: T) => React.ReactNode, defaultProps: DefaultProps = {}): React.ComponentType<any> => {
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
function Inner ({ callResult, callUpdated, children, className = defaultProps.className, label = '' }: any): React.ReactElement<Props<T>> {
return (
<div
@@ -70,7 +70,6 @@ export default function withObservable<T, P> (observable: Observable<P>, { callO
public override render (): React.ReactNode {
const { children } = this.props;
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const { callResult, callUpdated, callUpdatedAt } = this.state;
const _props = {
...defaultProps,
-1
View File
@@ -11,7 +11,6 @@ const onlyOn = (environment: Environment) => <T extends ComponentType<any>>(comp
return component;
}
// eslint-disable-next-line react/display-name
return () => null;
};
@@ -11,7 +11,7 @@ function isElectron () {
return true;
}
return navigator?.userAgent?.indexOf('Electron') >= 0;
return !!navigator?.userAgent?.includes('Electron');
}
export function getEnvironment (): Environment {