Skip to content

Commit ee5dfd4

Browse files
authored
fix(experimental-utils): add getPhysicalFilename() to RuleContext (typescript-eslint#3934)
1 parent 35a8acf commit ee5dfd4

File tree

1 file changed

+7
-0
lines changed
  • packages/experimental-utils/src/ts-eslint

1 file changed

+7
-0
lines changed

packages/experimental-utils/src/ts-eslint/Rule.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,13 @@ interface RuleContext<
230230
*/
231231
getFilename(): string;
232232

233+
/**
234+
* Returns the full path of the file on disk without any code block information (unlike `getFilename()`).
235+
* This was added in v7.28.0
236+
* @since 7.28.0
237+
*/
238+
getPhysicalFilename?(): string;
239+
233240
/**
234241
* Returns the scope of the currently-traversed node.
235242
* This information can be used track references to variables.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy