You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/developer-guide/working-with-rules.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -321,6 +321,8 @@ The `fixer` object has the following methods:
321
321
*`replaceText(nodeOrToken, text)` - replaces the text in the given node or token
322
322
*`replaceTextRange(range, text)` - replaces the text in the given range
323
323
324
+
A range is a two-item array containing character indices inside of the source code. The first item is the start of the range (inclusive) and the second item is the end of the range (exclusive). Every node and token has a `range` property to identify the source code range they represent.
325
+
324
326
The above methods return a `fixing` object.
325
327
The `fix()` function can return the following values:
0 commit comments