diff --git a/configs/eslint-config/index.js b/configs/eslint-config/index.js index 4f845b33b..0861213b5 100644 --- a/configs/eslint-config/index.js +++ b/configs/eslint-config/index.js @@ -119,7 +119,7 @@ export const suspensiveReactTypeScriptConfig = tseslint.config( }, { plugins: { - 'react-hooks': reactHooks.configs.recommended, + 'react-hooks': reactHooks, 'react-compiler': reactCompiler, }, languageOptions: { @@ -128,6 +128,7 @@ export const suspensiveReactTypeScriptConfig = tseslint.config( }, }, rules: { + ...reactHooks.configs.recommended.rules, 'react-compiler/react-compiler': 'warn', }, settings: { diff --git a/docs/suspensive.org/theme.config.tsx b/docs/suspensive.org/theme.config.tsx index 124dae950..069f9c1ba 100644 --- a/docs/suspensive.org/theme.config.tsx +++ b/docs/suspensive.org/theme.config.tsx @@ -123,7 +123,7 @@ const config: DocsThemeConfig = { float: true, }, navigation: true, - main: ({ children }) => { + main: function Main({ children }) { const router = useRouter() return (