diff --git a/.eslintrc.js b/.eslintrc.js index 5b999efa47..ec9a3ac937 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -7,4 +7,7 @@ module.exports = { rootDir: ["apps/*/"], }, }, + rules: { + "react-hooks/exhaustive-deps": "off", + }, }; diff --git a/packages/plugin-heading-analyzer/src/HeadingAnalyzer.tsx b/packages/plugin-heading-analyzer/src/HeadingAnalyzer.tsx index 9586e3b5be..b0cb2601f5 100644 --- a/packages/plugin-heading-analyzer/src/HeadingAnalyzer.tsx +++ b/packages/plugin-heading-analyzer/src/HeadingAnalyzer.tsx @@ -109,8 +109,6 @@ const HeadingOutlineAnalyer = ({ } else { setHierarchy(buildHierarchy()); } - - // eslint-disable-next-line react-hooks/exhaustive-deps }, [data.content]); return (