From a05601f98f7432580136df291a90bfef89635165 Mon Sep 17 00:00:00 2001 From: Melanie Calame Date: Tue, 23 May 2023 08:18:06 +0200 Subject: [PATCH 1/2] Complete sentence documenting turning on parserOptions.project --- docs/linting/Typed_Linting.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/linting/Typed_Linting.mdx b/docs/linting/Typed_Linting.mdx index 20d694074f0f..85caefa0964f 100644 --- a/docs/linting/Typed_Linting.mdx +++ b/docs/linting/Typed_Linting.mdx @@ -47,7 +47,7 @@ You may see new rules reporting errors based on type information! The `parserOptions.project` option can be turned on with either: - `true`: to always use `tsconfig.json`s nearest to source files -- `string | string[]`: any number of glob paths to match TSConfig files relative to the +- `string | string[]`: any number of glob paths to match TSConfig files relative to `parserOptions.tsconfigRootDir`, or the CWD if that is not provided For example, if you use a specific `tsconfig.eslint.json` for linting, you'd specify: From 7cb4d2590ef3de758834c34b4e96bade01ba6234 Mon Sep 17 00:00:00 2001 From: Melandra Date: Mon, 29 May 2023 22:43:00 +0200 Subject: [PATCH 2/2] Spell out CWD MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Josh Goldberg ✨ --- docs/linting/Typed_Linting.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/linting/Typed_Linting.mdx b/docs/linting/Typed_Linting.mdx index 85caefa0964f..7d6c96f86ce1 100644 --- a/docs/linting/Typed_Linting.mdx +++ b/docs/linting/Typed_Linting.mdx @@ -47,7 +47,7 @@ You may see new rules reporting errors based on type information! The `parserOptions.project` option can be turned on with either: - `true`: to always use `tsconfig.json`s nearest to source files -- `string | string[]`: any number of glob paths to match TSConfig files relative to `parserOptions.tsconfigRootDir`, or the CWD if that is not provided +- `string | string[]`: any number of glob paths to match TSConfig files relative to `parserOptions.tsconfigRootDir`, or the current working directory if that is not provided For example, if you use a specific `tsconfig.eslint.json` for linting, you'd specify: