diff --git a/scripts/front/merge-duplicated-translations/find-duplicated-translation.js b/scripts/front/merge-duplicated-translations/find-duplicated-translation.js index fbdf2c79b9..5a366dcc39 100644 --- a/scripts/front/merge-duplicated-translations/find-duplicated-translation.js +++ b/scripts/front/merge-duplicated-translations/find-duplicated-translation.js @@ -13,10 +13,10 @@ const printResults = (results) => { Object.entries(pkgs).forEach(([packageName, keys]) => { keys.forEach((key) => { console.log(`"${chalk.yellow(value)}" ${packageName} ${chalk.blue(key)}`); - keysCount++; + keysCount += 1; }); }); - valuesCount++; + valuesCount += 1; console.log(); }); diff --git a/scripts/front/merge-duplicated-translations/index.js b/scripts/front/merge-duplicated-translations/index.js index 4adec42b2b..b2843bc674 100644 --- a/scripts/front/merge-duplicated-translations/index.js +++ b/scripts/front/merge-duplicated-translations/index.js @@ -137,10 +137,10 @@ const merge = async (valuesToMerge) => { valueGroup.forEach((keyGroup) => { updateTranslationFiles(keyGroup, targetKey); keyGroup.replaceAll(`id: '${targetKey}'`); - mergedCount++; + mergedCount += 1; }); } - current++; + current += 1; } console.log(`Merged ${mergedCount} keys`); diff --git a/scripts/open-api/serve.js b/scripts/open-api/serve.js index 05bb055b58..37657184e5 100644 --- a/scripts/open-api/serve.js +++ b/scripts/open-api/serve.js @@ -25,7 +25,7 @@ async function run() { } const server = http.createServer((req, res) => { - if (req.url == '/spec.yml') { + if (req.url === '/spec.yml') { return fse.createReadStream(openAPISpecPath).pipe(res); }