Bump deps w/ eslint (#322)

* Bump deps w/ eslint

* theme default
This commit is contained in:
Jaco Greeff
2020-05-24 09:35:43 +02:00
committed by GitHub
parent 050d1966c6
commit 2df46e88ce
26 changed files with 504 additions and 353 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ function ScanAddress ({ className, onError, onScan, size, style }: Props): React
decodeAddress(address);
onScan({ address, genesisHash, name });
} catch (error) {
console.error('@polkadot/react-qr:QrScanAddress', error.message, data);
console.error('@polkadot/react-qr:QrScanAddress', (error as Error).message, data);
}
},
[onScan]
+1 -1
View File
@@ -9,7 +9,7 @@ const qrcode: typeof _qrcode = _qrcode;
// HACK The default function take string -> number[], the Uint8array is compatible
// with that signature and the use thereof
// eslint-disable-next-line @typescript-eslint/no-explicit-any
// eslint-disable-next-line @typescript-eslint/no-explicit-any,@typescript-eslint/no-unsafe-member-access
(qrcode as any).stringToBytes = (data: Uint8Array): Uint8Array =>
data;