Skip to content

Commit

Permalink
fix: prettier
Browse files Browse the repository at this point in the history
Signed-off-by: Till Sanders <[email protected]>
  • Loading branch information
tillsanders committed Mar 22, 2024
1 parent d663f4d commit db1157f
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ESMitter

ESMitter *(read: E-S-Emitter; a pun on ESM + emitter)* is an event emitter compatible with Node.js
ESMitter _(read: E-S-Emitter; a pun on ESM + emitter)_ is an event emitter compatible with Node.js
and modern browsers. It is a fork of [EventEmitter3](https://github.com/primus/eventemitter3), but
natively TypeScript, ESM-only and with more modern tooling. ESMitter is currently in alpha stage.
The complete codebase has been converted to TypeScript and EcmaScript module syntax (ESM). ESMitter
Expand Down
5 changes: 4 additions & 1 deletion benchmarks/run/add-remove.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ import("../../dist/index.js").then((ESMitter) => {
console.log(e.target.toString());
})
.on("complete", function completed() {
console.log("Fastest is %s", this.filter("fastest").map("name").join(' & '));
console.log(
"Fastest is %s",
this.filter("fastest").map("name").join(" & "),
);
})
.run({ async: true });
});
5 changes: 4 additions & 1 deletion benchmarks/run/context.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ import("../../dist/index.js").then((ESMitter) => {
console.log(e.target.toString());
})
.on("complete", function completed() {
console.log("Fastest is %s", this.filter("fastest").map("name").join(' & '));
console.log(
"Fastest is %s",
this.filter("fastest").map("name").join(" & "),
);
})
.run({ async: true });
});
5 changes: 4 additions & 1 deletion benchmarks/run/emit-multiple-listeners.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ import("../../dist/index.js").then((ESMitter) => {
console.log(e.target.toString());
})
.on("complete", function completed() {
console.log("Fastest is %s", this.filter("fastest").map("name").join(' & '));
console.log(
"Fastest is %s",
this.filter("fastest").map("name").join(" & "),
);
})
.run({ async: true });
});
5 changes: 4 additions & 1 deletion benchmarks/run/emit.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ import("../../dist/index.js").then((ESMitter) => {
console.log(e.target.toString());
})
.on("complete", function completed() {
console.log("Fastest is %s", this.filter("fastest").map("name").join(' & '));
console.log(
"Fastest is %s",
this.filter("fastest").map("name").join(" & "),
);
})
.run({ async: true });
});
5 changes: 4 additions & 1 deletion benchmarks/run/hundreds.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ import("../../dist/index.js").then((ESMitter) => {
console.log(e.target.toString());
})
.on("complete", function completed() {
console.log("Fastest is %s", this.filter("fastest").map("name").join(' & '));
console.log(
"Fastest is %s",
this.filter("fastest").map("name").join(" & "),
);
})
.run({ async: true });
});
5 changes: 4 additions & 1 deletion benchmarks/run/init.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ import("../../dist/index.js").then((ESMitter) => {
console.log(e.target.toString());
})
.on("complete", function completed() {
console.log("Fastest is %s", this.filter("fastest").map("name").join(' & '));
console.log(
"Fastest is %s",
this.filter("fastest").map("name").join(" & "),
);
})
.run({ async: true });
});
5 changes: 4 additions & 1 deletion benchmarks/run/listeners.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ import("../../dist/index.js").then((ESMitter) => {
console.log(e.target.toString());
})
.on("complete", function completed() {
console.log("Fastest is %s", this.filter("fastest").map("name").join(' & '));
console.log(
"Fastest is %s",
this.filter("fastest").map("name").join(" & "),
);
})
.run({ async: true });
});
5 changes: 4 additions & 1 deletion benchmarks/run/once.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ import("../../dist/index.js").then((ESMitter) => {
console.log(e.target.toString());
})
.on("complete", function completed() {
console.log("Fastest is %s", this.filter("fastest").map("name").join(' & '));
console.log(
"Fastest is %s",
this.filter("fastest").map("name").join(" & "),
);
})
.run({ async: true });
});
5 changes: 4 additions & 1 deletion benchmarks/run/remove-emit.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ import("../../dist/index.js").then((ESMitter) => {
console.log(e.target.toString());
})
.on("complete", function completed() {
console.log("Fastest is %s", this.filter("fastest").map("name").join(' & '));
console.log(
"Fastest is %s",
this.filter("fastest").map("name").join(" & "),
);
})
.run({ async: true });
});
10 changes: 5 additions & 5 deletions vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { defineConfig } from 'vitest/config';
import { defineConfig } from "vitest/config";

export default defineConfig({
test: {
coverage: {
reporter: ['text', 'json-summary', 'json'],
reporter: ["text", "json-summary", "json"],
reportOnFailure: true,
}
}
});
},
},
});

0 comments on commit db1157f

Please sign in to comment.