run prettier(2.0.5) (#1438)

This commit is contained in:
Severiano Badajoz
2020-05-04 10:26:42 -07:00
committed by GitHub
parent b255e32548
commit 6cccc41c0f
118 changed files with 1979 additions and 1584 deletions
+4 -4
View File
@@ -36,10 +36,10 @@ var formatStats = (stats, port) => {
var json = stats.toJson();
var formattedErrors = json.errors.map(
message => "Error in " + formatMessage(message)
(message) => "Error in " + formatMessage(message)
);
var formattedWarnings = json.warnings.map(
message => "Warning in " + formatMessage(message)
(message) => "Warning in " + formatMessage(message)
);
if (hasErrors) {
@@ -48,7 +48,7 @@ var formatStats = (stats, port) => {
if (formattedErrors.some(isLikelyASyntaxError)) {
formattedErrors = formattedErrors.filter(isLikelyASyntaxError);
}
formattedErrors.forEach(message => {
formattedErrors.forEach((message) => {
console.log(message);
console.log();
});
@@ -58,7 +58,7 @@ var formatStats = (stats, port) => {
if (hasWarnings) {
console.log(chalk.yellow("Compiled with warnings."));
console.log();
formattedWarnings.forEach(message => {
formattedWarnings.forEach((message) => {
console.log(message);
console.log();
});