Skip to content

Commit

Permalink
Remove requirement to await node:test functions
Browse files Browse the repository at this point in the history
  • Loading branch information
carlansley committed Dec 24, 2024
1 parent 421d04a commit ca11159
Show file tree
Hide file tree
Showing 4 changed files with 1,347 additions and 1,169 deletions.
33 changes: 33 additions & 0 deletions index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,39 @@ const tsConfigurations = [
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-floating-promises': [
'error',
{
allowForKnownSafeCalls: [
{
from: 'package',
name: [
'after',
'afterEach',
'before',
'beforeEach',
'describe',
'describe.only',
'describe.skip',
'describe.todo',
'it',
'it.only',
'it.skip',
'it.todo',
'suite',
'suite.only',
'suite.skip',
'suite.todo',
'test',
'test.only',
'test.skip',
'test.todo',
],
package: 'node:test',
},
],
},
],
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-non-null-asserted-optional-chain': 'off',
'@typescript-eslint/no-confusing-void-expression': 'off',
Expand Down
Loading

0 comments on commit ca11159

Please sign in to comment.