diff --git a/core/mytestwitheslint.ts b/core/mytestwitheslint.ts deleted file mode 100644 index 15eb160eb..000000000 --- a/core/mytestwitheslint.ts +++ /dev/null @@ -1,24 +0,0 @@ -async function testPromise() { - return new Promise((resolve) => - setTimeout(() => { - console.log("done"); - resolve("done"); - }, 1), - ); -} - -async function check() { - const t = testPromise(); - if (!!t) { - console.log("there should be an error"); - } - - const tt = (val = "str") => t; - - await new Promise(async (resolve) => { - await tt(); - resolve(); - }); - - console.log({ foo: 42, ...tt() }); -}