diff --git a/packages/typescript-estree/README.md b/packages/typescript-estree/README.md index 1d9a38d0fb3..54706cf47f9 100644 --- a/packages/typescript-estree/README.md +++ b/packages/typescript-estree/README.md @@ -61,7 +61,7 @@ interface ParseOptions { errorOnUnknownASTType?: boolean; /** - * The absolute path to the file being parsed. + * Absolute (or relative to `cwd`) path to the file being parsed. */ filePath?: string; @@ -159,7 +159,7 @@ interface ParseAndGenerateServicesOptions extends ParseOptions { extraFileExtensions?: string[]; /** - * The absolute path to the file being parsed. + * Absolute (or relative to `tsconfigRootDir`) path to the file being parsed. * When `project` is provided, this is required, as it is used to fetch the file from the TypeScript compiler's cache. */ filePath?: string; diff --git a/packages/typescript-estree/src/parser-options.ts b/packages/typescript-estree/src/parser-options.ts index 1cd8b4d5475..2317a683abf 100644 --- a/packages/typescript-estree/src/parser-options.ts +++ b/packages/typescript-estree/src/parser-options.ts @@ -65,7 +65,7 @@ export interface TSESTreeOptions { extraFileExtensions?: string[]; /** - * The absolute path to the file being parsed. + * Absolute (or relative to `tsconfigRootDir`) path to the file being parsed. * When `project` is provided, this is required, as it is used to fetch the file from the TypeScript compiler's cache. */ filePath?: string;