From a28e35e5f910e64491380efb1be12f9fa3c99e35 Mon Sep 17 00:00:00 2001 From: "Nicholas C. Zakas" Date: Tue, 9 Sep 2025 10:35:04 -0400 Subject: [PATCH] fix!: Remove deprecated RuleContext methods --- packages/core/src/types.ts | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/packages/core/src/types.ts b/packages/core/src/types.ts index 5611f314d..8cf585379 100644 --- a/packages/core/src/types.ts +++ b/packages/core/src/types.ts @@ -303,45 +303,21 @@ export interface RuleContext< */ cwd: string; - /** - * Returns the current working directory for the session. - * @deprecated Use `cwd` instead. - */ - getCwd(): string; - /** * The filename of the file being linted. */ filename: string; - /** - * Returns the filename of the file being linted. - * @deprecated Use `filename` instead. - */ - getFilename(): string; - /** * The physical filename of the file being linted. */ physicalFilename: string; - /** - * Returns the physical filename of the file being linted. - * @deprecated Use `physicalFilename` instead. - */ - getPhysicalFilename(): string; - /** * The source code object that the rule is running on. */ sourceCode: Options["Code"]; - /** - * Returns the source code object that the rule is running on. - * @deprecated Use `sourceCode` instead. - */ - getSourceCode(): Options["Code"]; - /** * Shared settings for the configuration. */