Skip to content

Commit de87e1d

Browse files
committed
Formatting
1 parent 7fcc067 commit de87e1d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/helpers.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
1-
import * as vscode from "vscode";
2-
import parse from "json-to-ast";
1+
import * as vscode from 'vscode';
2+
import parse from 'json-to-ast';
33

44
export const getASTNode = (
55
children: parse.PropertyNode[],
66
type: string,
77
keyValue: string
88
) => {
99
return children.find(
10-
(child) => child.key.type === type && child.key.value === keyValue
10+
child => child.key.type === type && child.key.value === keyValue
1111
);
1212
};
1313

1414
export const getRangeFromASTNode = (
15-
node: parse.PropertyNode | parse.LiteralNode | parse.ObjectNode | parse.ValueNode
15+
node:
16+
| parse.PropertyNode
17+
| parse.LiteralNode
18+
| parse.ObjectNode
19+
| parse.ValueNode
1620
) => {
1721
const startLine = node?.loc?.start.line || 0;
1822
const endLine = node?.loc?.end.line || 0;

0 commit comments

Comments
 (0)