@qntx/oxfmt
v1.0.2
Published
Shareable Oxfmt config for Vite+ apps and TypeScript libraries
Maintainers
Readme
@qntx/oxfmt
Shareable Oxfmt config for Vite+ apps and TypeScript libraries.
printWidth: 100, double quotes, semicolons, sortImports on. Formatting lives here; lint does not own style.
This is the @qntx/oxfmt product. The sibling GitHub repo qntx/oxfmt is a Vite+ starter and is superseded.
Install
bun add -d @qntx/oxlint @qntx/oxfmtDo not add oxfmt to a Vite+ app. vp fmt already nests it.
Recipes
Vite+ React
import { defineConfig } from "vite-plus";
import { react } from "@qntx/oxlint";
import { fmt } from "@qntx/oxfmt";
export default defineConfig({
lint: react,
fmt,
});Library: { lint: config, fmt }. Overlay with spread: { ...fmt, printWidth: 120 }.
CLI
export { fmt as default } from "@qntx/oxfmt";License
MIT © QuantX
A QuantX open-source project.
Code is law. We write both.
