Skip to content

Commit 6c29201

Browse files
committed
style(eslint): fix eslint
1 parent 2f962b0 commit 6c29201

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

.vscode/settings.json

-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
// Place your settings in this file to overwrite default and user settings.
22
{
33
"editor.tabSize": 2,
4-
"files.exclude": {
5-
"dist": false // set this to true to hide the "dist" folder with the compiled JS files
6-
},
7-
"search.exclude": {
8-
"dist": true // set this to false to include "dist" folder in search results
9-
},
104
"editor.codeActionsOnSave": {
115
"source.fixAll.eslint": true
126
}

src/intelliSense/intelliSenseUtility.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export enum JsonNodeType {
1616
String = "string",
1717
Number = "number",
1818
Boolean = "boolean",
19-
Property = "property",
19+
Property = "property"
2020
}
2121

2222
/**
@@ -100,14 +100,14 @@ export class IntelliSenseUtility {
100100
public static getInstancesOfPropertyNode(propertyNode: PropertyNode): string[] {
101101
const instances: string[] = [];
102102
if (propertyNode?.constraint.in) {
103-
for (const instance of propertyNode.constraint.in) {
104-
instances.push(IntelliSenseUtility.resolveNodeName(instance));
105-
}
106-
return instances;
103+
for (const instance of propertyNode.constraint.in) {
104+
instances.push(IntelliSenseUtility.resolveNodeName(instance));
105+
}
106+
return instances;
107107
}
108108

109109
if (propertyNode?.type) {
110-
const typeClassNode: ClassNode|undefined = IntelliSenseUtility.getClassNode(propertyNode.type);
110+
const typeClassNode: ClassNode | undefined = IntelliSenseUtility.getClassNode(propertyNode.type);
111111
if (typeClassNode) {
112112
return IntelliSenseUtility.getInstancesOfClassNode(typeClassNode);
113113
}
@@ -326,7 +326,7 @@ export class IntelliSenseUtility {
326326
}
327327
const outerProperty: parser.Node | undefined = IntelliSenseUtility.getParentJsonNodeByType(
328328
node,
329-
JsonNodeType.Property,
329+
JsonNodeType.Property
330330
);
331331
if (!outerProperty) {
332332
return Constants.EMPTY_STRING;

0 commit comments

Comments
 (0)