diff --git a/docs/src/use/migrate-to-9.0.0.md b/docs/src/use/migrate-to-9.0.0.md index 8b956a73d97..4b33690da13 100644 --- a/docs/src/use/migrate-to-9.0.0.md +++ b/docs/src/use/migrate-to-9.0.0.md @@ -326,6 +326,15 @@ ESLint v9.0.0 removes multiple deprecated methods from the `context` object and |`context.getTokensBefore()`|`sourceCode.getTokensBefore()`| |`context.getTokensBetween()`|`sourceCode.getTokensBetween()`| |`context.parserServices`|`sourceCode.parserServices`| +|`context.getDeclaredVariables()`|`sourceCode.getDeclaredVariables()`| + +In addition to the methods in the above table, there are several other methods that are also moved but required different method signatures: + +|**Removed on `context`**|**Replacement(s) on `SourceCode`**| +|-----------------------|--------------------------| +|`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).