Skip to content

docs: update references from 'Language Config' to 'Project Config' across documentation #1126

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
title: "Configure Language Config"
title: "Configure Project Config"
---

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

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

## JSX Transform

Expand Down
2 changes: 1 addition & 1 deletion apps/website/content/docs/configuration/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"pages": [
"configure-analyzer",
"!configure-language-preference",
"configure-language-config",
"configure-project-config",
"!---Advanced Configuration---",
"!enhanced-additional-components",
"!using-custom-parsers"
Expand Down
2 changes: 1 addition & 1 deletion apps/website/content/docs/faq.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ You can view our long-term plans on the [roadmap](/roadmap#plugins-with-ecologic

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.

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.
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.

</Accordion>

Expand Down
6 changes: 3 additions & 3 deletions apps/website/content/docs/getting-started/javascript.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default defineConfig([

<Step>

## Configure Language Config (Optional)
## Configure Project Config (Optional)

```ts title="eslint.config.js"
// @ts-check
Expand Down Expand Up @@ -100,9 +100,9 @@ export default [

<Callout title="TIP">

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.
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.

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

</Callout>

Expand Down
6 changes: 3 additions & 3 deletions apps/website/content/docs/getting-started/typescript.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default tseslint.config({

<Step>

## Configure Language Config (Optional)
## Configure Project Config (Optional)

```ts title="eslint.config.js"
// @ts-check
Expand Down Expand Up @@ -101,9 +101,9 @@ export default [

<Callout title="TIP">

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.
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.

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

</Callout>

Expand Down
18 changes: 10 additions & 8 deletions apps/website/content/docs/glossary.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,20 @@ description: "A collection of terms and concepts used in the ESLint React."

## L

### Language Config
### Language Preference

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

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.
ESLint React provides a way to customize the code style used in the internal fixer's output through Language Preference.

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.
## P

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

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

Language Preference is a set of rules that represents the user's preference for how code should be formatted.
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.

ESLint React provides a way to customize the code style used in the internal fixer's output through Language Preference.
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.

For MDX files, the Project Config is the `"mdx"` property in the `tsconfig.json` file.
Loading