Skip to content

Commit f4ad7a0

Browse files
committed
docs: minor improvements
1 parent c82655c commit f4ad7a0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,27 @@ ESLint React references your language config to determine how to perform static
1414

1515
## JSX Runtime
1616

17-
ESLint React reads your `tsconfig.json` or `jsconfig.json` configuration file to determine the JSX runtime type. If nothing is specified, it defaults to [`automatic`](https://legacy.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html).
17+
ESLint React reads your `tsconfig.json` or `jsconfig.json` configuration file to determine the JSX runtime type.
1818

1919
The following [compiler options](https://www.typescriptlang.org/tsconfig/#compilerOptions) are respected:
2020

2121
<JSXRuntimeTypeTable />
2222

23+
**If nothing is specified, it defaults to [`automatic`](https://legacy.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html)**.
24+
2325
Since this part does not perform type checking, there is **almost no performance impact**.
2426

2527
## Rules that Need Type Information
2628

27-
ESLint React uses the Typed Linting API from `typescript-eslint` to retrieve type information for the rules that require it. The `project` or `projectService` options in `parserOptions` must be set correctly for the rules to work.
29+
ESLint React uses the Typed Linting API from `typescript-eslint` to retrieve type information for the rules that require it.
2830

2931
The following rules require type information:
3032

3133
- [`react-x/prefer-read-only-props`](/docs/rules/prefer-read-only-props)
3234
- [`react-x/no-leaked-conditional-rendering`](/docs/rules/no-leaked-conditional-rendering)
3335

36+
**The `project` or `projectService` options in `parserOptions` must be set correctly for the rules to work**.
37+
3438
Enabling these rules **will have performance impact**, but they are more powerful than traditional lint rules.
3539

3640
## Resources

0 commit comments

Comments
 (0)