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
Copy file name to clipboardExpand all lines: apps/website/content/docs/faq.mdx
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,9 +20,11 @@ Just as in [Beyond the DOM](https://legacy.reactjs.org/docs/design-principles.ht
20
20
21
21
<Accordiontitle='Why is there no "jsx-runtime" preset in ESLint React?'>
22
22
23
-
ESLint React uses the same JSX runtime options as specified in your `tsconfig.json` or `jsconfig.json`and adjusts the relevant rules accordingly.
23
+
ESLint React reads your `tsconfig.json` or `jsconfig.json`configuration files to determines how to perform the JSX analysis internally. This means that you don't need to configure the JSX runtime in ESLint React, as it will automatically use the one configured in your project.
24
24
25
-
This avoids potential issues where the JSX runtime configured in ESLint might conflict with the one configured in `tsconfig.json` or `jsconfig.json`.
25
+
Additionally, this approach avoids potential problems where the JSX runtime configured in `eslint.config.js` might conflict with the one configured in `tsconfig.json` or `jsconfig.json`.
26
+
27
+
For more information, see the [JSX Runtime](/docs/configuration/configure-language-config#jsx-runtime) section on the [Configure Language Config](/docs/configuration/configure-language-config) page.
0 commit comments