Enable unicorn/no-useless-template-literals rule (#19383)
This commit is contained in:
1 parent
d1da0de0f6
commit
a42e063d5c
7 files changed
+25
-31
No files matched your search
@@ -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]"));
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user