mirror of
https://github.com/scratchfoundation/scratch-l10n.git
synced 2025-01-03 11:25:51 -05:00
fix: use es6 in eslint to avoid disabling linting on some lines
This commit is contained in:
parent
f298a58aeb
commit
b67ea684e7
2 changed files with 5 additions and 2 deletions
|
@ -1,3 +1,6 @@
|
|||
module.exports = {
|
||||
extends: ['scratch', 'scratch/node']
|
||||
extends: ['scratch', 'scratch/node'],
|
||||
env: {
|
||||
es6: true
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue