From a54e615cc6c73ab9c70339a604d666e35f8cc177 Mon Sep 17 00:00:00 2001 From: Milos Djermanovic Date: Thu, 4 Jan 2024 20:04:26 +0100 Subject: [PATCH] show signatures for methods with new ones Co-authored-by: Nitin Kumar --- docs/src/use/migrate-to-9.0.0.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/src/use/migrate-to-9.0.0.md b/docs/src/use/migrate-to-9.0.0.md index 3a31c06858c..f9cbeeee7d2 100644 --- a/docs/src/use/migrate-to-9.0.0.md +++ b/docs/src/use/migrate-to-9.0.0.md @@ -312,9 +312,9 @@ In addition to the methods in the above table, there are several other methods t |**Removed on `context`**|**Replacement(s) on `SourceCode`**| |-----------------------|--------------------------| -|`context.getAncestors()`|`sourceCode.getAncestors()`| -|`context.getScope()`|`sourceCode.getScope()`| -|`context.markVariableAsUsed()`|`sourceCode.markVariableAsUsed()`| +|`context.getAncestors()`|`sourceCode.getAncestors(node)`| +|`context.getScope()`|`sourceCode.getScope(node)`| +|`context.markVariableAsUsed(name)`|`sourceCode.markVariableAsUsed(name, node)`| **To address:** Following the recommendations in the [blog post](https://eslint.org/blog/2023/09/preparing-custom-rules-eslint-v9/#from-context-to-sourcecode).