add prettier and eslint

This commit is contained in:
Gregg Van Hove
2019-05-21 17:44:38 -07:00
parent cf2c5c9acc
commit b4cbe9850f
90 changed files with 6345 additions and 3647 deletions

View File

@@ -1,7 +1,7 @@
(function(env) {
function getAsyncCtor() {
try {
eval("var func = async function(){};");
eval('var func = async function(){};');
} catch (e) {
return null;
}
@@ -15,13 +15,12 @@
env.makeAsyncAwaitFunction = function() {
var AsyncFunction = getAsyncCtor();
return new AsyncFunction("");
return new AsyncFunction('');
};
env.requireAsyncAwait = function() {
if (!hasAsyncAwaitSupport()) {
env.pending("Environment does not support async/await functions");
env.pending('Environment does not support async/await functions');
}
};
})(jasmine.getEnv());