Skip to content

Commit

Permalink
show signatures for methods with new ones
Browse files Browse the repository at this point in the history
Co-authored-by: Nitin Kumar <snitin315@gmail.com>
  • Loading branch information
mdjermanovic and snitin315 committed Jan 4, 2024
1 parent cc96aaa commit a54e615
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/src/use/migrate-to-9.0.0.md
Expand Up @@ -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).

Expand Down

0 comments on commit a54e615

Please sign in to comment.