mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-12-02 02:17:12 +00:00
Update frontend dependencies (#498)
* update npm packages * update tsconfig * remove babelrc, babel presets as well as stable package * fix svg namespace tag syntax errors * fix reference error due to namespace and class component having same name * replace tslint with eslint * make eslint happier * update .nvmrc to 14 * update node version to 14 in gh workflow * fix eslint warnings due to warnings treated as errors on CI (process.env.CI = true) * pretty fix * bump node version in Dockerfile * use createRoot instead of react-dom render * update browsers list in package.json
This commit is contained in:
1 parent
d525056190
commit
41c93a8a19
72 files changed
+8089
-8612
No files matched your search
@@ -43,7 +43,8 @@ export class Persistent<Data> {
|
||||
|
||||
window.addEventListener('storage', (event) => {
|
||||
if (event.key === this.key) {
|
||||
this.value = parse((event.newValue as any) as Stringified<Data>);
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
this.value = parse(event.newValue as any as Stringified<Data>);
|
||||
|
||||
this.onChange(this.value);
|
||||
}
|
||||
@@ -58,7 +59,8 @@ export class Persistent<Data> {
|
||||
this.value = value;
|
||||
window.localStorage.setItem(
|
||||
this.key,
|
||||
(stringify(this.value) as any) as string
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
stringify(this.value) as any as string
|
||||
);
|
||||
this.onChange(this.value);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user