Skip to content

Commit 52a6db9

Browse files
committed
fix: prevent false positive on react-test-renderer
1 parent 4b6f12e commit 52a6db9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.eslintrc.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,5 +292,12 @@ module.exports = {
292292
'react/button-has-type': 'off',
293293
},
294294
},
295+
{
296+
files: '*.test.tsx',
297+
rules: {
298+
// False positive on react-test-renderer act()
299+
'@typescript-eslint/no-floating-promises': 'off',
300+
},
301+
},
295302
],
296303
}

0 commit comments

Comments
 (0)