Enable unicorn/no-useless-template-literals rule (#19383)

This commit is contained in:
fisker Cheung authored and GitHub committed 2026-06-16 09:05:58 +08:00
1 parent d1da0de0f6
commit a42e063d5c
7 files changed
+25 -31

No files matched your search

+1 -1
View File
@@ -100,7 +100,7 @@ async function buildFile({ packageConfig, file, cliOptions, results }) {
prettyBytes(sizeDiff),
);
sizeMessages.push(`${message}`);
sizeMessages.push(message);
} else {
sizeMessages.push(styleText.blue("[NEW FILE]"));
}
+1 -1
View File
@@ -12,7 +12,7 @@ function getUmdWrapper({ name }, build) {
for (let index = 0; index < path.length; index++) {
const object = ["root", ...path.slice(0, index + 1)].join(".");
if (index === path.length - 1) {
globalObjectText.push(`${object}`);
globalObjectText.push(object);
} else {
globalObjectText.push(`${object} = ${object} || {};`);
}
@@ -36,7 +36,7 @@ export default async function showInstructionsAfterNpmPublish({
next,
}) {
if (next) {
console.log(`${styleText.green.bold`Prettier ${version} published!`}`);
console.log(styleText.green.bold`Prettier ${version} published!`);
await waitForEnter();
return;
}