I have had async funcs in my useEffect hooks from a javascript project that I am now converting to typescript:
(async ():Promise<void> => {
const stuff = await doStuff()
setThings(stuff)
})()
Worked without issues before but now in typescript I am getting an error:
...
"severity": 8,
"message": "Replace `(async·():` with `;(async·():·`",
"source": "eslint",
...