diff --git a/apps/frontend/eslint.config.ts b/apps/frontend/eslint.config.ts index ec18c0f..0c1d889 100644 --- a/apps/frontend/eslint.config.ts +++ b/apps/frontend/eslint.config.ts @@ -1,6 +1,8 @@ import js from '@eslint/js'; import globals from 'globals'; import tseslint from 'typescript-eslint'; +import pluginReact from 'eslint-plugin-react'; +import pluginReactHooks from 'eslint-plugin-react-hooks'; export default tseslint.config( { @@ -22,5 +24,19 @@ export default tseslint.config( }, }, rules: {}, + }, + { + ...pluginReact.configs.flat.recommended, // Enables core React rules + ...pluginReactHooks.configs.flat.recommended, // Enables React Hooks rules + languageOptions: { + parserOptions: { + ecmaFeatures: { + jsx: true, + }, + }, + globals: { + ...globals.browser, + }, + }, } );