Skip to content

Commit

Permalink
Revert "docs: mark SourceCode#getJSDocComment deprecated in working…
Browse files Browse the repository at this point in the history
…-with-rules (eslint#15829)"

This reverts commit c7eb776.
  • Loading branch information
srijan-deepsource committed May 30, 2022
1 parent 0b785d1 commit bba61c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/developer-guide/working-with-rules.md
Expand Up @@ -541,6 +541,7 @@ Once you have an instance of `SourceCode`, you can use the following methods on
* `getCommentsBefore(nodeOrToken)` - returns an array of comment tokens that occur directly before the given node or token.
* `getCommentsAfter(nodeOrToken)` - returns an array of comment tokens that occur directly after the given node or token.
* `getCommentsInside(node)` - returns an array of all comment tokens inside a given node.
* `getJSDocComment(node)` - returns the JSDoc comment for a given node or `null` if there is none.
* `isSpaceBetween(nodeOrToken, nodeOrToken)` - returns true if there is a whitespace character between the two tokens or, if given a node, the last token of the first node and the first token of the second node.
* `getFirstToken(node, skipOptions)` - returns the first token representing the given node.
* `getFirstTokens(node, countOptions)` - returns the first `count` tokens representing the given node.
Expand Down Expand Up @@ -597,7 +598,6 @@ Please note that the following methods have been deprecated and will be removed
* `getTokenOrCommentBefore()` - replaced by `getTokenBefore()` with the `{ includeComments: true }` option
* `getTokenOrCommentAfter()` - replaced by `getTokenAfter()` with the `{ includeComments: true }` option
* `isSpaceBetweenTokens()` - replaced by `isSpaceBetween()`
* `getJSDocComment()`

### Options Schemas

Expand Down

0 comments on commit bba61c8

Please sign in to comment.