Skip to content

Commit acb4126

Browse files
committed
docs(linter/plugins): correct JSDoc comments for SourceCode tokens methods
1 parent 4520695 commit acb4126

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/oxlint/src-js/plugins/tokens.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export function getTokenBefore(
130130
/* oxlint-enable no-unused-vars */
131131

132132
/**
133-
* Get the tokens that precedes a given node or token.
133+
* Get the tokens that precede a given node or token.
134134
* @param nodeOrToken - The AST node or token.
135135
* @param countOptions? - Options object. Same options as `getFirstTokens()`.
136136
* @returns Array of `Token`s.
@@ -202,7 +202,7 @@ export function getTokensBetween(
202202
* Get the first token between two non-overlapping nodes.
203203
* @param nodeOrToken1 - Node before the desired token range.
204204
* @param nodeOrToken2 - Node after the desired token range.
205-
* @param countOptions? - Options object. Same options as `getFirstToken()`.
205+
* @param skipOptions? - Options object. Same options as `getFirstToken()`.
206206
* @returns `Token`, or `null` if all were skipped.
207207
*/
208208
/* oxlint-disable no-unused-vars */
@@ -269,7 +269,7 @@ export function getLastTokensBetween(
269269
/**
270270
* Get the token starting at the specified index.
271271
* @param index - Index of the start of the token's range.
272-
* @param options - Options object.
272+
* @param rangeOptions - Options object.
273273
* @returns The token starting at index, or `null` if no such token.
274274
*/
275275
// oxlint-disable-next-line no-unused-vars

0 commit comments

Comments
 (0)