Adjust (some) tsconfig overrides (#9191)
This commit is contained in:
parent
ec3844aa4f
commit
46a5fa8f00
@ -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';
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
@ -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": {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user