Skip to content

Commit f66bec8

Browse files
committed
run lint/format after migration
1 parent 2b2bba0 commit f66bec8

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

actions/unjs/oxfmt.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { defineAction } from "codeup";
2+
import { runScript } from "../../src/utils/pkg";
23

34
// https://prettier.io/docs/configuration
45
const PRETTIER_CONFIG_FILES = [
@@ -54,5 +55,8 @@ export default defineAction({
5455

5556
// Install oxfmt as dev dependency
5657
await utils.addDevDependency("oxfmt");
58+
59+
// Run oxfmt to format the codebase
60+
await runScript("oxfmt --write .");
5761
},
5862
});

actions/unjs/oxlint.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { defineAction } from "codeup";
2+
import { runScript } from "../../src/utils/pkg";
23

34
// https://eslint.org/docs/latest/use/configure/configuration-files
45
const ESLINT_CONFIG_FILES = [
@@ -72,5 +73,8 @@ export default defineAction({
7273
}
7374
}
7475
});
76+
77+
// Run oxlint --fix to apply fixes
78+
await runScript("oxlint --fix");
7579
},
7680
});

0 commit comments

Comments
 (0)