fix: use es6 in eslint to avoid disabling linting on some lines

This commit is contained in:
Cori Hudson 2022-09-26 15:16:18 -04:00
parent f298a58aeb
commit b67ea684e7
2 changed files with 5 additions and 2 deletions

View file

@ -1,3 +1,6 @@
module.exports = {
extends: ['scratch', 'scratch/node']
extends: ['scratch', 'scratch/node'],
env: {
es6: true
}
};

View file

@ -8,7 +8,7 @@
exports.batchMap = async (arr, batchSize, func) => {
const results = [];
for (let i = 0; i < arr.length; i += batchSize) {
const result = await Promise.all( // eslint-disable-line
const result = await Promise.all(
arr.slice(i, i + batchSize).map(func)
);
results.push(...result);