ESLint: fix dangling commas

This commit is contained in:
Yury Bondarenko
2023-06-27 16:23:06 +02:00
parent 725dbc3743
commit 917c36dbe7
1789 changed files with 12452 additions and 12452 deletions

View File

@@ -36,12 +36,12 @@ function toHALResponse(req, data, included?) {
const result = {
_embedded: data,
_links: {
self: req.protocol + '://' + req.get('host') + req.originalUrl
}
self: req.protocol + '://' + req.get('host') + req.originalUrl,
},
};
if (included && Array.isArray(included) && included.length > 0) {
Object.assign(result, {
included: included
included: included,
});
}
return result;

View File

@@ -11,5 +11,5 @@ export const fakeDemoRedisCache = {
return cache;
},
set: (key, data) => fakeDemoRedisCache._cache[key] = data,
clear: () => fakeDemoRedisCache._cache = {}
clear: () => fakeDemoRedisCache._cache = {},
};

View File

@@ -3,5 +3,5 @@ export const fakeDataBase = {
get() {
const res = { data: 'This fake data came from the db on the server.' };
return Promise.resolve(res);
}
},
};