Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 0 additions & 36 deletions packages/core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,67 +303,31 @@ 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.
*/
settings: SettingsConfig;

/**
* Parser-specific options for the configuration.
* @deprecated Use `languageOptions.parserOptions` instead.
*/
parserOptions: Record<string, unknown>;

/**
* The language options for the configuration.
*/
languageOptions: Options["LangOptions"];

/**
* The CommonJS path to the parser used while parsing this file.
* @deprecated No longer used.
*/
parserPath: string | undefined;

/**
* The rule ID.
*/
Expand Down