diff --git a/packages/experimental-utils/src/ts-eslint/Rule.ts b/packages/experimental-utils/src/ts-eslint/Rule.ts index 24b8fd4fa114..544428ea963e 100644 --- a/packages/experimental-utils/src/ts-eslint/Rule.ts +++ b/packages/experimental-utils/src/ts-eslint/Rule.ts @@ -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.