Fix: Configure React version for ESLint to resolve preflight warnings (#449)

This commit is contained in:
Allen Hutchison 2025-05-20 12:53:27 -07:00 committed by GitHub
parent 8b20d16ba8
commit 4002e980d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 0 deletions

View File

@ -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