Format Config
vp fmt and vp check read Oxfmt settings from the fmt block in vite.config.ts. Oxfmt discovers the config from the working directory and its parents. Keep shared settings in the workspace-root config. See Oxfmt's configuration for details.
Example
ts
import { defineConfig } from 'vite-plus';
export default defineConfig({
fmt: {
ignorePatterns: ['dist/**'],
singleQuote: true,
semi: true,
sortPackageJson: true,
},
});For file- or package-specific formatting settings, use fmt.overrides from the root vite.config.ts.
Vite+ passes --disable-nested-config by default, so nested format configs do not override settings for individual files. This does not prevent discovery of a package-level config when running from that package. See troubleshooting for details.