From 4002e980d9e02e973e19226dbc25aeec00a65cf5 Mon Sep 17 00:00:00 2001 From: Allen Hutchison Date: Tue, 20 May 2025 12:53:27 -0700 Subject: [PATCH] Fix: Configure React version for ESLint to resolve preflight warnings (#449) --- eslint.config.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/eslint.config.js b/eslint.config.js index 5483f8aa..da9e3221 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -40,6 +40,14 @@ export default tseslint.config( reactHooks.configs['recommended-latest'], reactPlugin.configs.flat.recommended, reactPlugin.configs.flat['jsx-runtime'], // Add this if you are using React 17+ + { + // Settings for eslint-plugin-react + settings: { + react: { + version: 'detect', + }, + }, + }, { // Import specific config files: ['packages/cli/src/**/*.{ts,tsx}'], // Target only TS/TSX in the cli package