mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 00:20:04 +01:00
Another attempt to fix #34745. I updated our fixture for eslint-v9 to include running tsc. I believe there were 2 issues: 1. `export * from './cjs/eslint-plugin-react-hooks'` in npm/index.d.ts was no longer correct as we updated index.ts to export default instead of named exports 2. After fixing ^ there was a typescript error which I fixed by making some small tweaks
21 lines
438 B
TypeScript
21 lines
438 B
TypeScript
import {defineConfig} from 'eslint/config';
|
|
import reactHooks from 'eslint-plugin-react-hooks';
|
|
|
|
export default defineConfig([
|
|
{
|
|
languageOptions: {
|
|
ecmaVersion: 'latest',
|
|
sourceType: 'module',
|
|
parserOptions: {
|
|
ecmaFeatures: {
|
|
jsx: true,
|
|
},
|
|
},
|
|
},
|
|
extends: [reactHooks.configs['recommended-latest']],
|
|
rules: {
|
|
'react-hooks/exhaustive-deps': 'error',
|
|
},
|
|
},
|
|
]);
|