seanpmaxwell / express-generator-typescript

Create a new express app similar to express-generator but with TypeScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When starting a project, I get ESLint errors in VS Code

robvaneck opened this issue · comments

commented

Promise returned in function argument where a void return was expected.eslint@typescript-eslint/no-misused-promises

in /src/routes/index.ts
on

userRouter.get('/all', getAllUsers);

and on src/index.ts
I get

Unsafe call of an `any` typed value.eslint@typescript-eslint/no-unsafe-call

on app.listen(port, () => {

is it still happening?

I'm having this issue too. As soon as I set it up it starts out with 11 errors and 4 warnings.

Hmm, VScode isn't giving me this issue. I don't have eslint@typescript-eslint/no-unsafe-call as a linter option. Did you add that linter option? If so you need to update your code accordingly.

closing this issue as I can't reproduce and has had no activity for a while