A Prettier plugin for formatting JSONV files.
- Formats
.jsonvfiles using the @cldmv/jsonv parser - Supports all ES2015-2025 features (JSON5, binary/octal literals, BigInt, numeric separators, etc.)
- Configurable year-based feature detection
- Proper handling of comments and whitespace
- Integrates with Prettier's configuration system
npm install --save-dev @cldmv/prettier-plugin-jsonv prettier @cldmv/jsonvAdd the plugin to your Prettier configuration:
import jsonv from 'prettier-plugin-jsonv';
export default {
plugins: [jsonv],
overrides: [
{
files: "*.jsonv",
options: {
jsonvYear: 2025,
strictBigInt: false
}
}
]
};module.exports = {
plugins: ['prettier-plugin-jsonv'],
overrides: [
{
files: "*.jsonv",
options: {
jsonvYear: 2025,
strictBigInt: false
}
}
]
};| Option | Type | Default | Description |
|---|---|---|---|
jsonvYear |
number | 2025 | The year to use for JSONV features (2015-2025) |
strictBigInt |
boolean | false | Whether to enforce strict BigInt parsing |
Apache-2.0 © Shinrai / CLDMV