From a2afae46b616e9ca087ce09539a56c2fc159f49d Mon Sep 17 00:00:00 2001 From: Marvin Hagemeister Date: Tue, 11 Feb 2025 16:35:16 +0100 Subject: [PATCH] fix(unstable): add missing rule context types (#28014) --- cli/tsc/dts/lib.deno.unstable.d.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/cli/tsc/dts/lib.deno.unstable.d.ts b/cli/tsc/dts/lib.deno.unstable.d.ts index 8ce5790dd87c35..c6a030187192cf 100644 --- a/cli/tsc/dts/lib.deno.unstable.d.ts +++ b/cli/tsc/dts/lib.deno.unstable.d.ts @@ -1396,7 +1396,21 @@ declare namespace Deno { * @experimental */ export interface RuleContext { + /** + * The running rule id: `/` + */ id: string; + /** + * Name of the file that's currently being linted. + */ + fileName: string; + /** + * Retrieve the source code of the current file. + */ + source(): string; + /** + * Report a lint error. + */ report(data: ReportData): void; }