Skip to content

Commit 74a596c

Browse files
natemoo-regithub-actions[bot]
authored andcommitted
[ci] format
1 parent 4652f97 commit 74a596c

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/commands/format.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { local } from "../utils.ts";
55
// standardized `format` command, runs `@biomejs/biome` and fixes formatting
66
export async function format(ctx: CommandContext) {
77
console.log("Formatting with Biome");
8-
const stdio = x(local('biome'), ["check", "--write", "./src"]);
8+
const stdio = x(local("biome"), ["check", "--write", "./src"]);
99

1010
for await (const line of stdio) {
1111
console.log(line);

src/commands/lint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { local } from "../utils.ts";
55
// standardized `lint` command, runs `@biomejs/biome` and generates a lint report
66
export async function lint(ctx: CommandContext) {
77
console.log("Linting with Biome");
8-
const stdio = x(local('biome'), ["lint", "./src"]);
8+
const stdio = x(local("biome"), ["lint", "./src"]);
99

1010
for await (const line of stdio) {
1111
console.log(line);

src/utils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ import { fileURLToPath, pathToFileURL } from "node:url";
22
import escalade from "escalade";
33

44
export function local(file: string) {
5-
return fileURLToPath(new URL(`../node_modules/.bin/${file}`, import.meta.url))
5+
return fileURLToPath(
6+
new URL(`../node_modules/.bin/${file}`, import.meta.url),
7+
);
68
}
79

810
export async function getPackageJSON() {

0 commit comments

Comments
 (0)