@jsrepo/transform-oxfmt
v6.0.2
Published
A transform plugin for jsrepo to format code with oxfmt.
Readme
@jsrepo/transform-oxfmt
A transform plugin for formatting registry items with oxfmt before they are added to your project.
Usage
Run the following command to install and add the transform to your config:
jsrepo config transform @jsrepo/transform-oxfmtManual Configuration
Install the transform plugin:
pnpm install @jsrepo/transform-oxfmt -DAdd the transform to your config:
import { defineConfig } from "jsrepo";
import oxfmt from "@jsrepo/transform-oxfmt";
export default defineConfig({
transforms: [oxfmt()],
});Options
The transform accepts oxfmt's FormatOptions to customize formatting behavior:
import { defineConfig } from "jsrepo";
import oxfmt from "@jsrepo/transform-oxfmt";
export default defineConfig({
transforms: [oxfmt({ semi: false })],
});