Skip to content

Commit 02dde29

Browse files
authoredApr 19, 2021
Docs: Fix anchor in 'docs/developer-guide/working-with-rules.md' (#14332)
Fixes the `getSourceCode()` anchor ref.
1 parent 07d14c3 commit 02dde29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎docs/developer-guide/working-with-rules.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ Additionally, the `context` object has the following methods:
140140
* Otherwise, if the node does not declare any variables, an empty array is returned.
141141
* `getFilename()` - returns the filename associated with the source.
142142
* `getScope()` - returns the [scope](./scope-manager-interface.md#scope-interface) of the currently-traversed node. This information can be used to track references to variables.
143-
* `getSourceCode()` - returns a [`SourceCode`](#context-getsourcecode) object that you can use to work with the source that was passed to ESLint.
143+
* `getSourceCode()` - returns a [`SourceCode`](#contextgetsourcecode) object that you can use to work with the source that was passed to ESLint.
144144
* `markVariableAsUsed(name)` - marks a variable with the given name in the current scope as used. This affects the [no-unused-vars](../rules/no-unused-vars.md) rule. Returns `true` if a variable with the given name was found and marked as used, otherwise `false`.
145145
* `report(descriptor)` - reports a problem in the code (see the [dedicated section](#contextreport)).
146146

0 commit comments

Comments
 (0)
Please sign in to comment.