Fix eslint in scripts

This commit is contained in:
Alexandre Bodin 2022-09-05 15:04:28 +02:00
parent 19cc297f74
commit 3909b91efa
3 changed files with 5 additions and 5 deletions

View File

@ -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();
});

View File

@ -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`);

View File

@ -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);
}