From c9ad0dc186f55ffbfb3bb9f3ecc64f52613d96a9 Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Wed, 3 May 2023 14:17:19 +0530 Subject: [PATCH] docs: resubmit pr17107 doc changes credits: https://github.com/snitin315 Refs: * https://github.com/eslint/eslint/issues/17225 * https://github.com/eslint/eslint/pull/17107 --- docs/src/extend/custom-rules.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/extend/custom-rules.md b/docs/src/extend/custom-rules.md index 70d7803165fa..f5508e82ee49 100644 --- a/docs/src/extend/custom-rules.md +++ b/docs/src/extend/custom-rules.md @@ -518,7 +518,7 @@ module.exports = { }; ``` -**Deprecated:** The `context.getScope()` method is deprecated; make sure to use `context.sourceCode` property instead. +**Deprecated:** The `context.getSourceCode()` method is deprecated; make sure to use `context.sourceCode` property instead. Once you have an instance of `SourceCode`, you can use the following methods on it to work with the code: