dprint_plugin_json/configuration/
configuration.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use dprint_core::configuration::NewLineKind;
use serde::{Deserialize, Serialize};

use super::types::TrailingCommaKind;

#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Configuration {
  pub line_width: u32,
  pub use_tabs: bool,
  pub indent_width: u8,
  pub new_line_kind: NewLineKind,
  #[serde(rename = "commentLine.forceSpaceAfterSlashes")]
  pub comment_line_force_space_after_slashes: bool,
  pub ignore_node_comment_text: String,
  #[serde(rename = "array.preferSingleLine")]
  pub array_prefer_single_line: bool,
  #[serde(rename = "object.preferSingleLine")]
  pub object_prefer_single_line: bool,
  pub trailing_commas: TrailingCommaKind,
  pub json_trailing_comma_files: Vec<String>,
}