mirror of
https://github.com/strapi/strapi.git
synced 2026-01-06 04:03:25 +00:00
Fix eslint in scripts
This commit is contained in:
parent
19cc297f74
commit
3909b91efa
@ -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();
|
||||
});
|
||||
|
||||
|
||||
@ -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`);
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user