File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
packages/utils/src/ts-eslint Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -294,16 +294,50 @@ export interface RuleContext<
294
294
295
295
// Deprecated members
296
296
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
+
297
317
/**
298
318
* The filename associated with the source.
299
319
*/
300
320
filename : string ;
301
321
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
+
302
328
/**
303
329
* The full path of the file on disk without any code block information (unlike `filename`).
304
330
*/
305
331
physicalFilename : string ;
306
332
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
+
307
341
/**
308
342
* A SourceCode object that you can use to work with the source that
309
343
* was passed to ESLint.
You can’t perform that action at this time.
0 commit comments