diff --git a/apps/website/content/docs/configuration/configure-language-config.mdx b/apps/website/content/docs/configuration/configure-language-config.mdx index 9b8011fa9a..2607e3876d 100644 --- a/apps/website/content/docs/configuration/configure-language-config.mdx +++ b/apps/website/content/docs/configuration/configure-language-config.mdx @@ -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 diff --git a/apps/website/content/docs/configuration/meta.json b/apps/website/content/docs/configuration/meta.json index be972382ba..ba0e931a4c 100644 --- a/apps/website/content/docs/configuration/meta.json +++ b/apps/website/content/docs/configuration/meta.json @@ -3,7 +3,7 @@ "pages": [ "configure-analyzer", "!configure-language-preference", - "configure-language-config", + "configure-project-config", "!---Advanced Configuration---", "!enhanced-additional-components", "!using-custom-parsers" diff --git a/apps/website/content/docs/faq.mdx b/apps/website/content/docs/faq.mdx index 5096b73652..00d0ddafa4 100644 --- a/apps/website/content/docs/faq.mdx +++ b/apps/website/content/docs/faq.mdx @@ -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. diff --git a/apps/website/content/docs/getting-started/javascript.mdx b/apps/website/content/docs/getting-started/javascript.mdx index 036fa3e626..b553bb42da 100644 --- a/apps/website/content/docs/getting-started/javascript.mdx +++ b/apps/website/content/docs/getting-started/javascript.mdx @@ -69,7 +69,7 @@ export default defineConfig([ -## Configure Language Config (Optional) +## Configure Project Config (Optional) ```ts title="eslint.config.js" // @ts-check @@ -100,9 +100,9 @@ export default [ -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. diff --git a/apps/website/content/docs/getting-started/typescript.mdx b/apps/website/content/docs/getting-started/typescript.mdx index ccef061984..b3ff5d300d 100644 --- a/apps/website/content/docs/getting-started/typescript.mdx +++ b/apps/website/content/docs/getting-started/typescript.mdx @@ -70,7 +70,7 @@ export default tseslint.config({ -## Configure Language Config (Optional) +## Configure Project Config (Optional) ```ts title="eslint.config.js" // @ts-check @@ -101,9 +101,9 @@ export default [ -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. diff --git a/apps/website/content/docs/glossary.mdx b/apps/website/content/docs/glossary.mdx index bf3d12152c..912d46f739 100644 --- a/apps/website/content/docs/glossary.mdx +++ b/apps/website/content/docs/glossary.mdx @@ -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.