Skip to content
Discussion options

You must be logged in to vote

#9325 (comment)

Alright, I've done a little bit more research.

Check out this typescript-eslint/typescript-eslint#4623 PR that adds granular options within checksVoidReturns for the no-misused-promises TS ESLint rule; the attributes options was added specifically for use-cases like the one you're experiencing. This is the official TS ESLint solution and we recommend you update your .eslintrc config file with it:

"rules": {
  "@typescript-eslint/no-misused-promises": [2, {
    "checksVoidReturn": {
      "attributes": false
    }
  }]
},

Replies: 9 comments 22 replies

Comment options

You must be logged in to vote
2 replies
@Adnan0061
Comment options

@ItaloCovas
Comment options

Comment options

You must be logged in to vote
4 replies
@Adnan0061
Comment options

@rtman
Comment options

@Adnan0061
Comment options

@rtman
Comment options

Comment options

You must be logged in to vote
9 replies
@gaurangrshah
Comment options

@Adnan0061
Comment options

@gaurangrshah
Comment options

@peter-novak-m
Comment options

@mkandan
Comment options

Comment options

You must be logged in to vote
2 replies
@CesarQD98
Comment options

@stephenvector
Comment options

Answer selected by Adnan0061
Comment options

You must be logged in to vote
3 replies
@suchcodemuchwow
Comment options

@dBianchii
Comment options

@RubenSmn
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ralph-p
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@buraczyn
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet