dprint_plugin_typescript::configuration

Struct Configuration

Source
pub struct Configuration {
Show 172 fields pub indent_width: u8, pub line_width: u32, pub use_tabs: bool, pub new_line_kind: NewLineKind, pub quote_style: QuoteStyle, pub quote_props: QuoteProps, pub semi_colons: SemiColons, pub arrow_function_use_parentheses: UseParentheses, pub binary_expression_line_per_expression: bool, pub conditional_expression_line_per_expression: bool, pub jsx_quote_style: JsxQuoteStyle, pub jsx_multi_line_parens: JsxMultiLineParens, pub jsx_force_new_lines_surrounding_content: bool, pub jsx_opening_element_bracket_position: SameOrNextLinePosition, pub jsx_self_closing_element_bracket_position: SameOrNextLinePosition, pub member_expression_line_per_expression: bool, pub type_literal_separator_kind_single_line: SemiColonOrComma, pub type_literal_separator_kind_multi_line: SemiColonOrComma, pub module_sort_import_declarations: SortOrder, pub module_sort_export_declarations: SortOrder, pub import_declaration_sort_named_imports: SortOrder, pub import_declaration_sort_type_only_imports: NamedTypeImportsExportsOrder, pub export_declaration_sort_named_exports: SortOrder, pub export_declaration_sort_type_only_exports: NamedTypeImportsExportsOrder, pub ignore_node_comment_text: String, pub ignore_file_comment_text: String, pub arrow_function_brace_position: BracePosition, pub class_declaration_brace_position: BracePosition, pub class_expression_brace_position: BracePosition, pub constructor_brace_position: BracePosition, pub do_while_statement_brace_position: BracePosition, pub enum_declaration_brace_position: BracePosition, pub get_accessor_brace_position: BracePosition, pub if_statement_brace_position: BracePosition, pub interface_declaration_brace_position: BracePosition, pub for_statement_brace_position: BracePosition, pub for_in_statement_brace_position: BracePosition, pub for_of_statement_brace_position: BracePosition, pub function_declaration_brace_position: BracePosition, pub function_expression_brace_position: BracePosition, pub method_brace_position: BracePosition, pub module_declaration_brace_position: BracePosition, pub set_accessor_brace_position: BracePosition, pub static_block_brace_position: BracePosition, pub switch_case_brace_position: BracePosition, pub switch_statement_brace_position: BracePosition, pub try_statement_brace_position: BracePosition, pub while_statement_brace_position: BracePosition, pub arguments_prefer_hanging: PreferHanging, pub array_expression_prefer_hanging: PreferHanging, pub array_pattern_prefer_hanging: bool, pub do_while_statement_prefer_hanging: bool, pub export_declaration_prefer_hanging: bool, pub extends_clause_prefer_hanging: bool, pub for_statement_prefer_hanging: bool, pub for_in_statement_prefer_hanging: bool, pub for_of_statement_prefer_hanging: bool, pub if_statement_prefer_hanging: bool, pub implements_clause_prefer_hanging: bool, pub import_declaration_prefer_hanging: bool, pub jsx_attributes_prefer_hanging: bool, pub object_expression_prefer_hanging: bool, pub object_pattern_prefer_hanging: bool, pub parameters_prefer_hanging: PreferHanging, pub sequence_expression_prefer_hanging: bool, pub switch_statement_prefer_hanging: bool, pub tuple_type_prefer_hanging: PreferHanging, pub type_literal_prefer_hanging: bool, pub type_parameters_prefer_hanging: PreferHanging, pub union_and_intersection_type_prefer_hanging: bool, pub variable_statement_prefer_hanging: bool, pub while_statement_prefer_hanging: bool, pub enum_declaration_member_spacing: MemberSpacing, pub if_statement_next_control_flow_position: NextControlFlowPosition, pub try_statement_next_control_flow_position: NextControlFlowPosition, pub do_while_statement_next_control_flow_position: NextControlFlowPosition, pub binary_expression_operator_position: OperatorPosition, pub conditional_expression_operator_position: OperatorPosition, pub conditional_type_operator_position: OperatorPosition, pub if_statement_single_body_position: SameOrNextLinePosition, pub for_statement_single_body_position: SameOrNextLinePosition, pub for_in_statement_single_body_position: SameOrNextLinePosition, pub for_of_statement_single_body_position: SameOrNextLinePosition, pub while_statement_single_body_position: SameOrNextLinePosition, pub arguments_trailing_commas: TrailingCommas, pub parameters_trailing_commas: TrailingCommas, pub array_expression_trailing_commas: TrailingCommas, pub array_pattern_trailing_commas: TrailingCommas, pub enum_declaration_trailing_commas: TrailingCommas, pub export_declaration_trailing_commas: TrailingCommas, pub import_declaration_trailing_commas: TrailingCommas, pub object_pattern_trailing_commas: TrailingCommas, pub object_expression_trailing_commas: TrailingCommas, pub tuple_type_trailing_commas: TrailingCommas, pub type_literal_trailing_commas: TrailingCommas, pub type_parameters_trailing_commas: TrailingCommas, pub if_statement_use_braces: UseBraces, pub for_statement_use_braces: UseBraces, pub for_of_statement_use_braces: UseBraces, pub for_in_statement_use_braces: UseBraces, pub while_statement_use_braces: UseBraces, pub array_expression_prefer_single_line: bool, pub array_pattern_prefer_single_line: bool, pub arguments_prefer_single_line: bool, pub binary_expression_prefer_single_line: bool, pub computed_prefer_single_line: bool, pub conditional_expression_prefer_single_line: bool, pub conditional_type_prefer_single_line: bool, pub decorators_prefer_single_line: bool, pub export_declaration_prefer_single_line: bool, pub for_statement_prefer_single_line: bool, pub import_declaration_prefer_single_line: bool, pub jsx_attributes_prefer_single_line: bool, pub jsx_element_prefer_single_line: bool, pub mapped_type_prefer_single_line: bool, pub member_expression_prefer_single_line: bool, pub object_expression_prefer_single_line: bool, pub object_pattern_prefer_single_line: bool, pub parameters_prefer_single_line: bool, pub parentheses_prefer_single_line: bool, pub tuple_type_prefer_single_line: bool, pub type_literal_prefer_single_line: bool, pub type_parameters_prefer_single_line: bool, pub union_and_intersection_type_prefer_single_line: bool, pub variable_statement_prefer_single_line: bool, pub import_declaration_force_single_line: bool, pub export_declaration_force_single_line: bool, pub export_declaration_force_multi_line: ForceMultiLine, pub import_declaration_force_multi_line: ForceMultiLine, pub binary_expression_space_surrounding_bitwise_and_arithmetic_operator: bool, pub comment_line_force_space_after_slashes: bool, pub construct_signature_space_after_new_keyword: bool, pub constructor_space_before_parentheses: bool, pub constructor_type_space_after_new_keyword: bool, pub do_while_statement_space_after_while_keyword: bool, pub export_declaration_space_surrounding_named_exports: bool, pub for_statement_space_after_for_keyword: bool, pub for_statement_space_after_semi_colons: bool, pub for_in_statement_space_after_for_keyword: bool, pub for_of_statement_space_after_for_keyword: bool, pub function_declaration_space_before_parentheses: bool, pub function_expression_space_before_parentheses: bool, pub function_expression_space_after_function_keyword: bool, pub get_accessor_space_before_parentheses: bool, pub if_statement_space_after_if_keyword: bool, pub import_declaration_space_surrounding_named_imports: bool, pub jsx_expression_container_space_surrounding_expression: bool, pub jsx_self_closing_element_space_before_slash: bool, pub method_space_before_parentheses: bool, pub object_expression_space_surrounding_properties: bool, pub object_pattern_space_surrounding_properties: bool, pub set_accessor_space_before_parentheses: bool, pub space_surrounding_properties: bool, pub tagged_template_space_before_literal: bool, pub type_annotation_space_before_colon: bool, pub type_assertion_space_before_expression: bool, pub type_literal_space_surrounding_properties: bool, pub while_statement_space_after_while_keyword: bool, pub arguments_space_around: bool, pub array_expression_space_around: bool, pub array_pattern_space_around: bool, pub catch_clause_space_around: bool, pub do_while_statement_space_around: bool, pub for_in_statement_space_around: bool, pub for_of_statement_space_around: bool, pub for_statement_space_around: bool, pub if_statement_space_around: bool, pub parameters_space_around: bool, pub paren_expression_space_around: bool, pub switch_statement_space_around: bool, pub tuple_type_space_around: bool, pub while_statement_space_around: bool,
}

Fields§

§indent_width: u8§line_width: u32§use_tabs: bool§new_line_kind: NewLineKind§quote_style: QuoteStyle§quote_props: QuoteProps§semi_colons: SemiColons§arrow_function_use_parentheses: UseParentheses§binary_expression_line_per_expression: bool§conditional_expression_line_per_expression: bool§jsx_quote_style: JsxQuoteStyle§jsx_multi_line_parens: JsxMultiLineParens§jsx_force_new_lines_surrounding_content: bool§jsx_opening_element_bracket_position: SameOrNextLinePosition§jsx_self_closing_element_bracket_position: SameOrNextLinePosition§member_expression_line_per_expression: bool§type_literal_separator_kind_single_line: SemiColonOrComma§type_literal_separator_kind_multi_line: SemiColonOrComma§module_sort_import_declarations: SortOrder§module_sort_export_declarations: SortOrder§import_declaration_sort_named_imports: SortOrder§import_declaration_sort_type_only_imports: NamedTypeImportsExportsOrder§export_declaration_sort_named_exports: SortOrder§export_declaration_sort_type_only_exports: NamedTypeImportsExportsOrder§ignore_node_comment_text: String§ignore_file_comment_text: String§arrow_function_brace_position: BracePosition§class_declaration_brace_position: BracePosition§class_expression_brace_position: BracePosition§constructor_brace_position: BracePosition§do_while_statement_brace_position: BracePosition§enum_declaration_brace_position: BracePosition§get_accessor_brace_position: BracePosition§if_statement_brace_position: BracePosition§interface_declaration_brace_position: BracePosition§for_statement_brace_position: BracePosition§for_in_statement_brace_position: BracePosition§for_of_statement_brace_position: BracePosition§function_declaration_brace_position: BracePosition§function_expression_brace_position: BracePosition§method_brace_position: BracePosition§module_declaration_brace_position: BracePosition§set_accessor_brace_position: BracePosition§static_block_brace_position: BracePosition§switch_case_brace_position: BracePosition§switch_statement_brace_position: BracePosition§try_statement_brace_position: BracePosition§while_statement_brace_position: BracePosition§arguments_prefer_hanging: PreferHanging§array_expression_prefer_hanging: PreferHanging§array_pattern_prefer_hanging: bool§do_while_statement_prefer_hanging: bool§export_declaration_prefer_hanging: bool§extends_clause_prefer_hanging: bool§for_statement_prefer_hanging: bool§for_in_statement_prefer_hanging: bool§for_of_statement_prefer_hanging: bool§if_statement_prefer_hanging: bool§implements_clause_prefer_hanging: bool§import_declaration_prefer_hanging: bool§jsx_attributes_prefer_hanging: bool§object_expression_prefer_hanging: bool§object_pattern_prefer_hanging: bool§parameters_prefer_hanging: PreferHanging§sequence_expression_prefer_hanging: bool§switch_statement_prefer_hanging: bool§tuple_type_prefer_hanging: PreferHanging§type_literal_prefer_hanging: bool§type_parameters_prefer_hanging: PreferHanging§union_and_intersection_type_prefer_hanging: bool§variable_statement_prefer_hanging: bool§while_statement_prefer_hanging: bool§enum_declaration_member_spacing: MemberSpacing§if_statement_next_control_flow_position: NextControlFlowPosition§try_statement_next_control_flow_position: NextControlFlowPosition§do_while_statement_next_control_flow_position: NextControlFlowPosition§binary_expression_operator_position: OperatorPosition§conditional_expression_operator_position: OperatorPosition§conditional_type_operator_position: OperatorPosition§if_statement_single_body_position: SameOrNextLinePosition§for_statement_single_body_position: SameOrNextLinePosition§for_in_statement_single_body_position: SameOrNextLinePosition§for_of_statement_single_body_position: SameOrNextLinePosition§while_statement_single_body_position: SameOrNextLinePosition§arguments_trailing_commas: TrailingCommas§parameters_trailing_commas: TrailingCommas§array_expression_trailing_commas: TrailingCommas§array_pattern_trailing_commas: TrailingCommas§enum_declaration_trailing_commas: TrailingCommas§export_declaration_trailing_commas: TrailingCommas§import_declaration_trailing_commas: TrailingCommas§object_pattern_trailing_commas: TrailingCommas§object_expression_trailing_commas: TrailingCommas§tuple_type_trailing_commas: TrailingCommas§type_literal_trailing_commas: TrailingCommas§type_parameters_trailing_commas: TrailingCommas§if_statement_use_braces: UseBraces§for_statement_use_braces: UseBraces§for_of_statement_use_braces: UseBraces§for_in_statement_use_braces: UseBraces§while_statement_use_braces: UseBraces§array_expression_prefer_single_line: bool§array_pattern_prefer_single_line: bool§arguments_prefer_single_line: bool§binary_expression_prefer_single_line: bool§computed_prefer_single_line: bool§conditional_expression_prefer_single_line: bool§conditional_type_prefer_single_line: bool§decorators_prefer_single_line: bool§export_declaration_prefer_single_line: bool§for_statement_prefer_single_line: bool§import_declaration_prefer_single_line: bool§jsx_attributes_prefer_single_line: bool§jsx_element_prefer_single_line: bool§mapped_type_prefer_single_line: bool§member_expression_prefer_single_line: bool§object_expression_prefer_single_line: bool§object_pattern_prefer_single_line: bool§parameters_prefer_single_line: bool§parentheses_prefer_single_line: bool§tuple_type_prefer_single_line: bool§type_literal_prefer_single_line: bool§type_parameters_prefer_single_line: bool§union_and_intersection_type_prefer_single_line: bool§variable_statement_prefer_single_line: bool§import_declaration_force_single_line: bool§export_declaration_force_single_line: bool§export_declaration_force_multi_line: ForceMultiLine§import_declaration_force_multi_line: ForceMultiLine§binary_expression_space_surrounding_bitwise_and_arithmetic_operator: bool§comment_line_force_space_after_slashes: bool§construct_signature_space_after_new_keyword: bool§constructor_space_before_parentheses: bool§constructor_type_space_after_new_keyword: bool§do_while_statement_space_after_while_keyword: bool§export_declaration_space_surrounding_named_exports: bool§for_statement_space_after_for_keyword: bool§for_statement_space_after_semi_colons: bool§for_in_statement_space_after_for_keyword: bool§for_of_statement_space_after_for_keyword: bool§function_declaration_space_before_parentheses: bool§function_expression_space_before_parentheses: bool§function_expression_space_after_function_keyword: bool§get_accessor_space_before_parentheses: bool§if_statement_space_after_if_keyword: bool§import_declaration_space_surrounding_named_imports: bool§jsx_expression_container_space_surrounding_expression: bool§jsx_self_closing_element_space_before_slash: bool§method_space_before_parentheses: bool§object_expression_space_surrounding_properties: bool§object_pattern_space_surrounding_properties: bool§set_accessor_space_before_parentheses: bool§space_surrounding_properties: bool§tagged_template_space_before_literal: bool§type_annotation_space_before_colon: bool§type_assertion_space_before_expression: bool§type_literal_space_surrounding_properties: bool§while_statement_space_after_while_keyword: bool§arguments_space_around: bool§array_expression_space_around: bool§array_pattern_space_around: bool§catch_clause_space_around: bool§do_while_statement_space_around: bool§for_in_statement_space_around: bool§for_of_statement_space_around: bool§for_statement_space_around: bool§if_statement_space_around: bool§parameters_space_around: bool§paren_expression_space_around: bool§switch_statement_space_around: bool§tuple_type_space_around: bool§while_statement_space_around: bool

Trait Implementations§

Source§

impl Clone for Configuration

Source§

fn clone(&self) -> Configuration

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'de> Deserialize<'de> for Configuration

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for Configuration

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T

Source§

impl<T> Send for T
where T: ?Sized,

Source§

impl<T> Sync for T
where T: ?Sized,