diff options
| author | Allen Hutchison <[email protected]> | 2025-05-20 12:53:27 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-20 12:53:27 -0700 |
| commit | 4002e980d9e02e973e19226dbc25aeec00a65cf5 (patch) | |
| tree | 2f05673adf3481009041d203969f8cf25203407d /eslint.config.js | |
| parent | 8b20d16ba81ff0f07aa4d036d74d2e6060a36ad0 (diff) | |
Fix: Configure React version for ESLint to resolve preflight warnings (#449)
Diffstat (limited to 'eslint.config.js')
| -rw-r--r-- | eslint.config.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/eslint.config.js b/eslint.config.js index 5483f8aa..da9e3221 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -41,6 +41,14 @@ export default tseslint.config( 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 plugins: { |
