Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
feat: Disable Promise<void> return checks in tests (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
72636c authored Jan 2, 2024
1 parent 41105a1 commit b123c77
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ module.exports = {

// Allow e.g. `/** @jest-environment jsdom */` directives
'tsdoc/syntax': 'off',

// Allow potential floating promises in tests only for Koa compatibility
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-misused-promises.md#checksvoidreturn
// https://github.com/DefinitelyTyped/DefinitelyTyped/pull/42551#issuecomment-648816869
'@typescript-eslint/no-misused-promises': [
'error',
{ checksVoidReturn: false },
],
},
},
{
Expand Down

0 comments on commit b123c77

Please sign in to comment.