Skip to content

Commit

Permalink
fix(experimental-utils): add getPhysicalFilename() to RuleContext (
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHenry committed Oct 3, 2021
1 parent 35a8acf commit ee5dfd4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/experimental-utils/src/ts-eslint/Rule.ts
Expand Up @@ -230,6 +230,13 @@ interface RuleContext<
*/
getFilename(): string;

/**
* Returns the full path of the file on disk without any code block information (unlike `getFilename()`).
* This was added in v7.28.0
* @since 7.28.0
*/
getPhysicalFilename?(): string;

/**
* Returns the scope of the currently-traversed node.
* This information can be used track references to variables.
Expand Down

0 comments on commit ee5dfd4

Please sign in to comment.