Skip to content

Commit b43ccc9

Browse files
authored
docs: update references from 'Language Config' to 'Project Config' across documentation (#1126)
1 parent 6111ae7 commit b43ccc9

File tree

6 files changed

+21
-19
lines changed

6 files changed

+21
-19
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
@@ -1,10 +1,10 @@
11
---
2-
title: "Configure Language Config"
2+
title: "Configure Project Config"
33
---
44

5-
import { JSXConfigTypeTable } from "./configure-language-config";
5+
import { JSXConfigTypeTable } from "./configure-project-config";
66

7-
ESLint React uses your Language Config for static analysis. This page details which options are used and how they affect the linting process.
7+
ESLint React uses your Project Config for static analysis. This page details which options are used and how they affect the linting process.
88

99
## JSX Transform
1010

apps/website/content/docs/configuration/meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"pages": [
44
"configure-analyzer",
55
"!configure-language-preference",
6-
"configure-language-config",
6+
"configure-project-config",
77
"!---Advanced Configuration---",
88
"!enhanced-additional-components",
99
"!using-custom-parsers"

apps/website/content/docs/faq.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ You can view our long-term plans on the [roadmap](/roadmap#plugins-with-ecologic
5757

5858
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-
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.
60+
For more information, see the [JSX Transform](/docs/configuration/configure-project-config#jsx-transform) section on the [Configure Project Config](/docs/configuration/configure-project-config) page.
6161

6262
</Accordion>
6363

apps/website/content/docs/getting-started/javascript.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export default defineConfig([
6969

7070
<Step>
7171

72-
## Configure Language Config (Optional)
72+
## Configure Project Config (Optional)
7373

7474
```ts title="eslint.config.js"
7575
// @ts-check
@@ -100,9 +100,9 @@ export default [
100100

101101
<Callout title="TIP">
102102

103-
Once you've correctly configured the language service integration for the files to be linted, ESLint React utilizes the information from the TypeScript compiler to provide better linting results.
103+
Once you've correctly configured the project for the files to be linted, ESLint React utilizes the information from the TypeScript compiler to provide better linting results.
104104

105-
For more information, see the [Configure Language Config](/docs/configuration/configure-language-config) section.
105+
For more information, see the [Configure Project Config](/docs/configuration/configure-project-config) section.
106106

107107
</Callout>
108108

apps/website/content/docs/getting-started/typescript.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default tseslint.config({
7070

7171
<Step>
7272

73-
## Configure Language Config (Optional)
73+
## Configure Project Config (Optional)
7474

7575
```ts title="eslint.config.js"
7676
// @ts-check
@@ -101,9 +101,9 @@ export default [
101101

102102
<Callout title="TIP">
103103

104-
Once you've correctly configured the language service integration for the files to be linted, ESLint React utilizes the information from the TypeScript compiler to provide better linting results.
104+
Once you've correctly configured the project for the files to be linted, ESLint React utilizes the information from the TypeScript compiler to provide better linting results.
105105

106-
For more information, see the [Configure Language Config](/docs/configuration/configure-language-config) section.
106+
For more information, see the [Configure Project Config](/docs/configuration/configure-project-config) section.
107107

108108
</Callout>
109109

apps/website/content/docs/glossary.mdx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,20 @@ description: "A collection of terms and concepts used in the ESLint React."
55

66
## L
77

8-
### Language Config
8+
### Language Preference
99

10-
The configuration file specifies the root files and the options for the features provided by the language service.
10+
Language Preference is a set of rules that represents the user's preference for how code should be formatted.
1111

12-
ESLint React uses the Language Config to provide information (e.g. [JSX Transform](/docs/configuration/configure-language-config#jsx-transform)) about the code it is linting.
12+
ESLint React provides a way to customize the code style used in the internal fixer's output through Language Preference.
1313

14-
For TypeScript or JavaScript files, the Language Config are typically named `tsconfig.json` or `jsconfig.json` and are located in the root of a project.
14+
## P
1515

16-
For MDX files, the Language Config is the `"mdx"` property in the `tsconfig.json` file.
16+
### Project Config
1717

18-
### Language Preference
18+
The configuration file specifies the root files and the compiler options required to compile the project.
1919

20-
Language Preference is a set of rules that represents the user's preference for how code should be formatted.
20+
ESLint React uses the Project Config to provide information (e.g. [JSX Transform](/docs/configuration/configure-project-config#jsx-transform)) about the code it is linting.
2121

22-
ESLint React provides a way to customize the code style used in the internal fixer's output through Language Preference.
22+
For TypeScript or JavaScript files, the Project Config are typically named `tsconfig.json` or `jsconfig.json` and are located in the root of a project.
23+
24+
For MDX files, the Project Config is the `"mdx"` property in the `tsconfig.json` file.

0 commit comments

Comments
 (0)