File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 11import { defineAction } from "codeup" ;
2+ import { runScript } from "../../src/utils/pkg" ;
23
34// https://prettier.io/docs/configuration
45const 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} ) ;
Original file line number Diff line number Diff line change 11import { defineAction } from "codeup" ;
2+ import { runScript } from "../../src/utils/pkg" ;
23
34// https://eslint.org/docs/latest/use/configure/configuration-files
45const 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} ) ;
You can’t perform that action at this time.
0 commit comments