From a3d1522269ba72d06557869458798f02db4fe32e Mon Sep 17 00:00:00 2001 From: JounQin Date: Tue, 13 Jul 2021 07:45:08 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#54419=20feat(eslin?= =?UTF-8?q?t):=20add=20`Context#getPhysicalFilename`=20method=20by=20@Joun?= =?UTF-8?q?Qin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/eslint/eslint-tests.ts | 2 ++ types/eslint/index.d.ts | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) 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;