biome_json_formatter 0.0.2

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

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

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