dillon1000/react
Commit
Browse files [eprh] Update plugin config to be compatible with flat and legacy (#34762)
This has been incredibly frustrating as [ESLint's own docs](https://eslint.org/docs/latest/extend/plugins#backwards-compatibility-for-legacy-configs) are clearly wrong (see #34679). This PR uses [eslint-plugin-react's setup](https://github.com/jsx-eslint/eslint-plugin-react/blob/master/index.js) as a reference, where the presets are assigned to `configs.flat` (not documented by eslint).
Changed paths4 files
First-parent comparisonfixtures/eslint-v9/eslint.config.ts ModifiedM packages/eslint-plugin-react-hooks/package.json ModifiedM packages/eslint-plugin-react-hooks/src/index.ts ModifiedM yarn.lock ModifiedPatch
Files changed
Rendering syntax-highlighted changes…