biome_json_formatter 0.5.7

Biome's JSON formatter
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::prelude::*;
use biome_json_syntax::JsonNullValue;

#[derive(Debug, Clone, Default)]
pub(crate) struct FormatJsonNullValue;

impl FormatNodeRule<JsonNullValue> for FormatJsonNullValue {
    fn fmt_fields(&self, node: &JsonNullValue, f: &mut JsonFormatter) -> FormatResult<()> {
        node.value_token()?.format().fmt(f)
    }
}