SIGN IN SIGN UP
facebook / react UNCLAIMED

The library for web and native user interfaces.

0 0 0 JavaScript

[eprh] Update plugin config to be compatible with flat and legacy

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).
L
Lauren Tan committed
7c2cbb3e09224c96dd3362a43bf5174d3400cd4f
Parent: 3025aa3