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(); next();
}; }
function deleteHandler(ctx, next) { function deleteHandler(ctx, next) {
var change = createChangeObject(ctx, 'delete'); var change = createChangeObject(ctx, 'delete');
@ -1910,7 +1910,7 @@ module.exports = function(registry) {
} }
next(); next();
}; }
function createChangeObject(ctx, type) { function createChangeObject(ctx, type) {
var where = ctx.where; var where = ctx.where;

View File

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

View File

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

View File

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

View File

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