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
+3 -3
View File
@@ -21,7 +21,7 @@ compiler.plugin("invalid", () => {
console.log("Compiling...");
});
compiler.plugin("done", stats => {
compiler.plugin("done", (stats) => {
utils.formatStats(stats, CLIENT_PORT);
});
@@ -33,7 +33,7 @@ app.use(historyApiFallback({ verbose: false }));
app.use(
require("webpack-dev-middleware")(compiler, {
logLevel: "warn",
publicPath: config.output.publicPath
publicPath: config.output.publicPath,
})
);
@@ -43,7 +43,7 @@ app.get("*", (req, res) => {
res.sendFile(path.resolve("index.html"));
});
app.listen(CLIENT_PORT, err => {
app.listen(CLIENT_PORT, (err) => {
if (err) {
console.log(err);
return;
+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();
});