Skip to content

Commit 0d7ead9

Browse files
committed
docs: minor improvements
1 parent 31c3757 commit 0d7ead9

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

apps/website/content/docs/configuration/configure-language-config.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ title: "Configure Language Config"
44

55
import { JSXConfigTypeTable } from "./configure-language-config";
66

7-
ESLint React uses your language configuration (`tsconfig.json`/`jsconfig.json`) for static analysis. Learn which specific features use this config here.
7+
ESLint React uses your language config for static analysis. This page details which options are used and how they affect the linting process.
88

99
## JSX Transform
1010

11-
ESLint React uses your compiler options to determine the JSX transform you are using. This is important for linting JSX syntax correctly.
11+
ESLint React uses [compiler options](https://www.typescriptlang.org/tsconfig/#compilerOptions) in `tsconfig.json` or `jsconfig.json` to determine the JSX transform the project is using.
1212

13-
The following [compiler options](https://www.typescriptlang.org/tsconfig/#compilerOptions) are respected:
13+
The following compiler options are respected:
1414

1515
<JSXConfigTypeTable />
1616

apps/website/content/docs/faq.mdx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,11 @@ You can view our long-term plans on the [roadmap](/roadmap#plugins-with-ecologic
5353

5454
</Accordion>
5555

56-
<Accordion title="Why is there no 'jsx-runtime' preset?">
56+
<Accordion title="Why isn't there a 'jsx-runtime' preset?">
5757

58-
ESLint React automatically detects your JSX transform configuration from `tsconfig.json` or `jsconfig.json` by reading `compilerOptions` (like `jsx`, `jsxImportSource`, etc.).
58+
ESLint React automatically detects your JSX runtime type from the compiler options in your `tsconfig.json` or `jsconfig.json` file, as well as from JSX pragma comments (e.g., `/** @jsxRuntime automatic */`) in each file. This means you don't need to set a preset for the JSX runtime.
5959

60-
If these aren't set, it defaults to the `automatic` transform (React 17+), which uses `jsx-runtime` internally and doesn't require importing React.
61-
62-
Because the plugin automatically adapts to your settings or uses the appropriate default, a specific `'jsx-runtime'` preset isn't needed.
63-
64-
For more details, see the [Configure Language Config](/docs/configuration/configure-language-config) page.
60+
For more information, see the [JSX Transform](/docs/configuration/configure-language-config#jsx-transform) section on the [Configure Language Config](/docs/configuration/configure-language-config) page.
6561

6662
</Accordion>
6763

apps/website/content/docs/rules/overview.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Linter rules can have false positives, false negatives, and some rules are depen
2525

2626
<Callout type="info" title="TIP">
2727

28-
Rules prefixed with `jsx-` check for issues exclusive to JSX syntax, which are absent from standard JavaScript code (like handwritten `createElement()` calls).
28+
The `jsx-*` rules check for issues exclusive to JSX syntax, which are absent from standard JavaScript (like handwritten `createElement()` calls).
2929

3030
</Callout>
3131

0 commit comments

Comments
 (0)