You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If your eslint.config.js is ESM, include the `.js` extension (e.g. `eslint-plugin-react/recommended.js`). Note that the next semver-major will require omitting the extension for these imports.
210
+
This plugin exports 3 flat configs:
215
211
216
-
**Note**: These configurations will import `eslint-plugin-react` and enable JSX in [`languageOptions.parserOptions`](https://eslint.org/docs/latest/user-guide/configuring/configuration-files-new#configuration-objects).
212
+
-`flat.all`
213
+
-`flat.recommended`
214
+
-`flat['jsx-runtime']`
217
215
218
-
In the new config system, `plugin:` protocol(e.g. `plugin:react/recommended`) is no longer valid.
219
-
As eslint does not automatically import the preset config (shareable config), you explicitly do it by yourself.
216
+
The flat configs are available via the root plugin import. They will configure the plugin under the `react/` namespace and enable JSX in [`languageOptions.parserOptions`](https://eslint.org/docs/latest/use/configure/language-options#specifying-parser-options).
0 commit comments