| 1 | import {defineConfig} from 'eslint/config'; |
| 2 | import reactHooks from 'eslint-plugin-react-hooks'; |
| 3 | |
| 4 | export default defineConfig([ |
| 5 | reactHooks.configs.flat['recommended-latest'], |
| 6 | { |
| 7 | languageOptions: { |
| 8 | ecmaVersion: 'latest', |
| 9 | sourceType: 'module', |
| 10 | parserOptions: { |
| 11 | ecmaFeatures: { |
| 12 | jsx: true, |
| 13 | }, |
| 14 | }, |
| 15 | }, |
| 16 | rules: { |
| 17 | 'react-hooks/exhaustive-deps': 'error', |
| 18 | }, |
| 19 | }, |
| 20 | ]); |