Skip to content

Commit

Permalink
docs(typescript-estree): clarify filePath resolution in docs (#1458)
Browse files Browse the repository at this point in the history
  • Loading branch information
armano2 authored and bradzacher committed Jan 14, 2020
1 parent 982c8bc commit b47da0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/typescript-estree/README.md
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript-estree/src/parser-options.ts
Expand Up @@ -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;
Expand Down

0 comments on commit b47da0d

Please sign in to comment.