Package Exports
- vize
- vize/config
- vize/pkl/vize.pkl
- vize/schemas/vize.config.schema.json
Readme
Vize
The vize npm package provides:
- shared config utilities (
defineConfig,loadConfig) - the native
vize lintcommand
For Vite integration, pair it with @vizejs/vite-plugin.
For the full Rust-native CLI (build, fmt, check, lsp, ide), install the Rust vize
binary with cargo install vize.
Installation
pnpm add -D vizeCLI
The npm CLI currently exposes lint:
pnpm exec vize lint src
pnpm exec vize lint --preset opinionated --help-level short srcShared config discovery is supported for the npm CLI:
vize.config.tsvize.config.jsvize.config.mjsvize.config.pklvize.config.json
import { defineConfig } from "vize";
export default defineConfig({
linter: {
preset: "opinionated",
},
});Override config discovery with --config, or disable it with --no-config.
Programmatic Config Helpers
import { defineConfig, loadConfig } from "vize";
export default defineConfig({
linter: {
preset: "happy-path",
},
});
const config = await loadConfig(process.cwd());Related Packages
@vizejs/vite-plugin@vizejs/native@vizejs/wasm@vizejs/nuxt@vizejs/vite-plugin-musea
License
MIT