chore(eslint): use eslint for a more consistent style throughout the code

This commit is contained in:
Mahdi Dibaiee
2016-06-30 18:28:02 +04:30
parent 3d78b467ac
commit 07af23cb5a
9 changed files with 137 additions and 140 deletions

View File

@ -13,7 +13,7 @@ export const parseInclude = request => {
return a;
}).filter(a => a);
}
};
export const parseWhere = request => {
const where = omit(request.query, 'include');
@ -27,7 +27,7 @@ export const parseWhere = request => {
}
return where;
}
};
export const getMethod = (model, association, plural = true, method = 'get') => {
const a = plural ? association.original.plural : association.original.singular;
@ -36,4 +36,4 @@ export const getMethod = (model, association, plural = true, method = 'get') =>
if (fn) return fn.bind(model);
return false;
}
};