Skip to content

Format Config

vp fmt and vp check read Oxfmt settings from the fmt block in vite.config.ts. See Oxfmt's configuration for details.

Example

vite.config.ts
ts
import { defineConfig } from 'vite-plus';

export default defineConfig({
  fmt: {
    ignorePatterns: ['dist/**'],
    singleQuote: true,
    semi: true,
    sortPackageJson: true,
  },
});

For package-specific formatting settings in a workspace, use fmt.overrides from the root vite.config.ts.