Skip to content

Commit c047df6

Browse files
committed
revert: properties not removed in eslint
1 parent 4d913a0 commit c047df6

File tree

1 file changed

+34
-0
lines changed
  • packages/utils/src/ts-eslint

1 file changed

+34
-0
lines changed

packages/utils/src/ts-eslint/Rule.ts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,16 +294,50 @@ export interface RuleContext<
294294

295295
// Deprecated members
296296

297+
/**
298+
* Returns the current working directory passed to Linter.
299+
* It is a path to a directory that should be considered as the current working directory.
300+
* @deprecated in favor of `RuleContext#cwd`
301+
*/
302+
getCwd(): string;
303+
304+
/**
305+
* The current working directory passed to Linter.
306+
* It is a path to a directory that should be considered as the current working directory.
307+
*/
308+
cwd: string;
309+
310+
/**
311+
* Returns the filename associated with the source.
312+
*
313+
* @deprecated in favor of `RuleContext#filename`
314+
*/
315+
getFilename(): string;
316+
297317
/**
298318
* The filename associated with the source.
299319
*/
300320
filename: string;
301321

322+
/**
323+
* Returns the full path of the file on disk without any code block information (unlike `getFilename()`).
324+
* @deprecated in favor of `RuleContext#physicalFilename`
325+
*/
326+
getPhysicalFilename(): string;
327+
302328
/**
303329
* The full path of the file on disk without any code block information (unlike `filename`).
304330
*/
305331
physicalFilename: string;
306332

333+
/**
334+
* Returns a SourceCode object that you can use to work with the source that
335+
* was passed to ESLint.
336+
*
337+
* @deprecated in favor of `RuleContext#sourceCode`
338+
*/
339+
getSourceCode(): Readonly<SourceCode>;
340+
307341
/**
308342
* A SourceCode object that you can use to work with the source that
309343
* was passed to ESLint.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy