biome_js_formatter 0.0.2

Biome's JavaScript formatter
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::prelude::*;

use crate::js::auxiliary::template_chunk_element::AnyTemplateChunkElement;
use biome_js_syntax::TsTemplateChunkElement;

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

impl FormatNodeRule<TsTemplateChunkElement> for FormatTsTemplateChunkElement {
    fn fmt_fields(
        &self,
        node: &TsTemplateChunkElement,
        formatter: &mut JsFormatter,
    ) -> FormatResult<()> {
        AnyTemplateChunkElement::from(node.clone()).fmt(formatter)
    }
}