From fcfcff8cc78099ac657a025108951231ea1d4ac7 Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Tue, 7 Mar 2023 09:03:35 +0000 Subject: [PATCH 1/2] Add Nav block files to those triggering error for exhaustive deps --- .eslintrc.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index b8012f2686cbb..797c6c5364dc3 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -350,7 +350,12 @@ module.exports = { }, }, { - files: [ 'packages/components/src/**/*.[tj]s?(x)' ], + files: [ + // Components package. + 'packages/components/src/**/*.[tj]s?(x)', + // Navigaiton block. + 'packages/block-library/src/navigation/**/*.[tj]s?(x)', + ], excludedFiles: [ ...developmentFiles ], rules: { 'react-hooks/exhaustive-deps': 'error', From 538f7e8663e4385ab71fa3eeefdf2a30c36515cd Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Tue, 7 Mar 2023 10:56:30 +0000 Subject: [PATCH 2/2] Correct spelling Co-authored-by: Marin Atanasov <8436925+tyxla@users.noreply.github.com> --- .eslintrc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 797c6c5364dc3..d5deabd83e0c5 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -353,7 +353,7 @@ module.exports = { files: [ // Components package. 'packages/components/src/**/*.[tj]s?(x)', - // Navigaiton block. + // Navigation block. 'packages/block-library/src/navigation/**/*.[tj]s?(x)', ], excludedFiles: [ ...developmentFiles ],