chore: update to latest linting rules

This commit is contained in:
virkt25 2018-09-12 11:19:48 -04:00 committed by Taranveer Virk
parent acc1cd0ee5
commit fa644d6a31
5 changed files with 7 additions and 7 deletions

View File

@ -1901,7 +1901,7 @@ module.exports = function(registry) {
}
next();
};
}
function deleteHandler(ctx, next) {
var change = createChangeObject(ctx, 'delete');
@ -1910,7 +1910,7 @@ module.exports = function(registry) {
}
next();
};
}
function createChangeObject(ctx, type) {
var where = ctx.where;

View File

@ -71,7 +71,7 @@
"coveralls": "^3.0.2",
"dirty-chai": "^1.2.2",
"eslint": "^5.3.0",
"eslint-config-loopback": "^11.0.0",
"eslint-config-loopback": "^12.0.0",
"eslint-plugin-mocha": "^5.1.0",
"express-session": "^1.14.0",
"grunt": "^1.0.1",

View File

@ -642,7 +642,7 @@ describe('authorized roles propagation in RemotingContext', function() {
});
});
return Promise.all(acls);
};
}
function makeAuthorizedHttpRequestOnMyTestModel() {
return request.get('/MyTestModels')

View File

@ -778,9 +778,9 @@ describe('Multiple users with custom principalType', function() {
return new Promise(function(resolve, reject) {
emitter.once(name, resolve);
});
};
}
function getIds(array) {
return array.map(function(it) { return it.id; });
};
}
});

View File

@ -2989,7 +2989,7 @@ describe('User', function() {
expect(actualIds).to.eql(expectedIds);
done();
});
};
}
function assertNoAccessTokens(done) {
AccessToken.find({where: {userId: user.pk}}, function(err, tokens) {