dillon1000/react

Commit

[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).
Browse files
Changed paths4 files
First-parent comparison
M fixtures/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 Modified
Patch

Files changed

Rendering syntax-highlighted changes…