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

@@ -7,7 +7,6 @@ import type { LinkOption } from './types.js';
export const CUSTOM_ENDPOINT_KEY = 'pezkuwi-app-custom-endpoints';
interface EnvWindow {
// eslint-disable-next-line camelcase
process_env?: {
WS_URL: string;
}
+8 -3
View File
@@ -13,10 +13,15 @@ export { CUSTOM_ENDPOINT_KEY } from './development.js';
export * from './production.js';
export * from './testing.js';
function defaultT (keyOrText: string, text?: string | TOptions, options?: TOptions): string {
function defaultT (keyOrText: string, textOrOptions?: string | TOptions, options?: TOptions): string {
// as TFunction: the second argument is either the default text or the options
const [text, opts] = typeof textOrOptions === 'string'
? [textOrOptions, options]
: [undefined, textOrOptions];
return (
(options?.replace?.host as string) ||
text?.toString() ||
(opts?.replace?.host as string) ||
text ||
keyOrText
);
}