oxfmt

Format code before it's added to your project using oxfmt.

The @jsrepo/transform-oxfmt package is a transform plugin for jsrepo that formats code using oxfmt before it's added to your project.

This is especially useful when you are making use of the jsrepo update command as it will format the code the same way as it is in your project preventing any formatting changes from being shown in the diff.

Installation

To add the @jsrepo/transform-oxfmt transform to your config run the following command:

jsrepo config transform oxfmt

This will automatically install the transform and add it to your config:

import { defineConfig } from "jsrepo";
import oxfmt from "@jsrepo/transform-oxfmt"; 

export default defineConfig({
	transforms: [oxfmt()], 
});

On this page