mirror of
https://github.com/nodejs/node.git
synced 2025-05-08 14:36:08 +00:00

Greatly simplify how ESLint and its plugins are installed. PR-URL: https://github.com/nodejs/node/pull/53413 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
13 lines
315 B
JavaScript
13 lines
315 B
JavaScript
'use strict'
|
||
|
||
// Note! `move` only works inside lines! It’s not possible to move past other
|
||
// chunks (replacement characters, tabs, or line endings).
|
||
function movePoint(point, offset) {
|
||
point.column += offset
|
||
point.offset += offset
|
||
point._bufferIndex += offset
|
||
return point
|
||
}
|
||
|
||
module.exports = movePoint
|