Skip to content

Commit aa56c11

Browse files
screendrivereps1lon
andcommitted
Disable ESLint for teardown() function
Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>
1 parent 4626ba1 commit aa56c11

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ if (!process.env.RTL_SKIP_AUTO_CLEANUP) {
1111
await cleanup()
1212
})
1313
} else if (typeof teardown === 'function') {
14+
// Block is guarded by `typeof` check.
15+
// eslint does not support `typeof` guards.
16+
// eslint-disable-next-line no-undef
1417
teardown(async () => {
1518
await cleanup()
1619
})

0 commit comments

Comments
 (0)