style: updated eslint config

This commit is contained in:
Mahdi Dibaiee
2016-07-09 09:41:23 +04:30
parent aa06808ab2
commit 6786b9b487
7 changed files with 39 additions and 37 deletions

View File

@ -73,7 +73,7 @@ export const list = (server, a, b, names) => {
};
export const scope = (server, a, b, names) => {
let scopes = Object.keys(b.options.scopes);
const scopes = Object.keys(b.options.scopes);
server.route({
method: 'GET',
@ -112,7 +112,7 @@ export const scope = (server, a, b, names) => {
};
export const scopeScope = (server, a, b, names) => {
let scopes = {
const scopes = {
a: Object.keys(a.options.scopes),
b: Object.keys(b.options.scopes),
};
@ -126,7 +126,7 @@ export const scopeScope = (server, a, b, names) => {
const include = parseInclude(request);
const where = parseWhere(request);
let list = await b.scope(request.params.scopeb).findAll({
const list = await b.scope(request.params.scopeb).findAll({
where,
include: include.concat({
model: a.scope(request.params.scopea),
@ -175,7 +175,7 @@ export const destroy = (server, a, b, names) => {
};
export const destroyScope = (server, a, b, names) => {
let scopes = Object.keys(b.options.scopes);
const scopes = Object.keys(b.options.scopes);
server.route({
method: 'DELETE',