Skip to content

Commit 2d794e1

Browse files
committed
Add missing semi colons and update eslint to warn about them.
1 parent c4e07ea commit 2d794e1

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.eslintrc

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"Map": true,
1515
},
1616
"rules": {
17+
semi: [2, "always"],
1718
"quotes": [2, "single", "avoid-escape"],
1819
"no-underscore-dangle": 0,
1920
"no-shadow": 0,

src/goo/scriptpack/ScriptComponentHandler.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ define([
147147
}
148148

149149
return this._createEngineScript(instanceConfig.scriptRef.slice(prefix.length));
150-
}
150+
};
151151

152152
/**
153153
* Creates or loads a custom script. If the component already has an instance
@@ -175,7 +175,7 @@ define([
175175
// New script or the body was changed so reload the script.
176176
return that._load(ref, { reload: true });
177177
});
178-
}
178+
};
179179

180180
/**
181181
* Searches the specified component to try to find the specified script
@@ -193,7 +193,7 @@ define([
193193
return _.find(component.scripts, function (script) {
194194
return script.instanceId === instanceId;
195195
});
196-
}
196+
};
197197

198198
/**
199199
* Creates a new instance of one of the default scripts provided by the

0 commit comments

Comments
 (0)