routie dev init since i didn't adhere to any proper guidance up until now
This commit is contained in:
Generated
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
/**
|
||||
* Returns if a node is on a single line.
|
||||
*
|
||||
* @param node - The node to check.
|
||||
* @returns True if the node is on a single line, false otherwise.
|
||||
*/
|
||||
function isNodeOnSingleLine(node) {
|
||||
return node.loc.start.line === node.loc.end.line
|
||||
}
|
||||
export { isNodeOnSingleLine }
|
||||
Reference in New Issue
Block a user