Skip to content

Commit

Permalink
fix(eslint-config-ali): react version
Browse files Browse the repository at this point in the history
  • Loading branch information
guoyunhe committed Jan 2, 2025
1 parent c26770b commit aa43198
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/eslint-config-ali/src/configs/react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,5 +252,11 @@ export default defineConfig({
// @link https://reactjs.org/docs/hooks-rules.html
'react-hooks/exhaustive-deps': 'warn',
},
settings: {
react: {
version: 'detect',
defaultVersion: '18.3',
},
},
languageOptions: { globals: globals.browser },
});

0 comments on commit aa43198

Please sign in to comment.