Adjust (some) tsconfig overrides (#9191)

This commit is contained in:
Jaco 2023-03-17 09:03:43 +02:00 committed by GitHub
parent ec3844aa4f
commit 46a5fa8f00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 6 deletions

View File

@ -59,6 +59,6 @@ export function dateCalendarFormat (date: Date): string {
return new Date(date)
.toISOString()
.split('.')[0]
.replaceAll('-', '')
.replaceAll(':', '') + 'Z';
.replace(/-/g, '')
.replace(/:/g, '') + 'Z';
}

View File

@ -239,7 +239,7 @@ function UploadModal ({ className, file, onClose = NOOP, onSuccess = NOOP }: Pro
let upRes: UploadRes;
if (typeof upResult.data === 'string') {
const jsonStr = upResult.data.replaceAll('}\n{', '},{');
const jsonStr = upResult.data.replace(/}\n{/g, '},{');
const items = JSON.parse(`[${jsonStr}]`) as UploadRes[];
const folder = items.length - 1;

View File

@ -2,9 +2,6 @@
"extends": "@polkadot/dev/config/tsconfig.json",
"compilerOptions": {
"composite": false,
"lib": ["es2021", "dom"],
"jsx": "react",
"resolveJsonModule": true,
/* FIXME we still have some issues with some deps that make the default nodenext impossible */
"moduleResolution": "node",
"paths": {