From c148aa8bbdb1b6b9909f32d86031461156805cd6 Mon Sep 17 00:00:00 2001 From: Rodrigo Faria Date: Fri, 3 May 2024 19:59:02 +0100 Subject: [PATCH] chore(eslint): add useDeepCompareEffect to exhaustive deps rule (#339) --- .eslintrc.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 6f717bf4..e5722085 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -53,7 +53,10 @@ module.exports = { 'no-undef': 'off', 'react-hooks/rules-of-hooks': 'error', - 'react-hooks/exhaustive-deps': 'error', + 'react-hooks/exhaustive-deps': [ + 'error', + {additionalHooks: '(useDeepCompareEffect)'} + ], 'react/jsx-no-constructed-context-values': 'error', // We use function hoisting to put exports at top of file