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::JsonBooleanValue;

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

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