diff --git a/types/eslint/eslint-tests.ts b/types/eslint/eslint-tests.ts index 08b71375ce100a..5fa5b86ce5847f 100644 --- a/types/eslint/eslint-tests.ts +++ b/types/eslint/eslint-tests.ts @@ -375,6 +375,8 @@ rule = { context.getFilename(); + context.getPhysicalFilename(); + context.getCwd(); context.getSourceCode(); diff --git a/types/eslint/index.d.ts b/types/eslint/index.d.ts index 3f04aa2b3c6c3b..2dd585519db0a8 100644 --- a/types/eslint/index.d.ts +++ b/types/eslint/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for eslint 7.2 +// Type definitions for eslint 7.28 // Project: https://eslint.org // Definitions by: Pierre-Marie Dartus // Jed Fox @@ -584,6 +584,8 @@ export namespace Rule { getFilename(): string; + getPhysicalFilename(): string; + getCwd(): string; getScope(): Scope.Scope;