--- source: crates/rome_formatter_test/src/snapshot_builder.rs info: test_file: ts/function/trailing_comma/function_trailing_comma.ts --- # Input ```ts function test< longlonglonglonglonglonglongT1, longlonglonglonglonglonglongT2, longlonglonglonglonglonglongT3 >( longlonglonglonglonglonglongItem1, longlonglonglonglonglonglongItem2, longlonglonglonglonglonglongItem3 ) {} const test1 = < longlonglonglonglonglonglongT1, longlonglonglonglonglonglongT2, longlonglonglonglonglonglongT3 >( longlonglonglonglonglonglongItem1, longlonglonglonglonglonglongItem2, longlonglonglonglonglonglongItem3 ) => {}; test< longlonglonglonglonglonglongT1, longlonglonglonglonglonglongT2, longlonglonglonglonglonglongT3 >( longlonglonglonglonglonglongItem1, longlonglonglonglonglonglongItem2, longlonglonglonglonglonglongItem3, ); this.test( longlonglonglonglonglonglongT1, longlonglonglonglonglonglongT2, longlonglonglonglonglonglongT3); connect( mapStateToPropsmapStateToProps, mapDispatchToPropsmapDispatchToProps, mergePropsmergeProps, )(Component) ``` ============================= # Outputs ## Output 1 ----- Indent style: Tab Line width: 80 Quote style: Double Quotes Quote properties: As needed Trailing comma: All Semicolons: Always ----- ```ts function test< longlonglonglonglonglonglongT1, longlonglonglonglonglonglongT2, longlonglonglonglonglonglongT3, >( longlonglonglonglonglonglongItem1, longlonglonglonglonglonglongItem2, longlonglonglonglonglonglongItem3, ) {} const test1 = < longlonglonglonglonglonglongT1, longlonglonglonglonglonglongT2, longlonglonglonglonglonglongT3, >( longlonglonglonglonglonglongItem1, longlonglonglonglonglonglongItem2, longlonglonglonglonglonglongItem3, ) => {}; test< longlonglonglonglonglonglongT1, longlonglonglonglonglonglongT2, longlonglonglonglonglonglongT3 >( longlonglonglonglonglonglongItem1, longlonglonglonglonglonglongItem2, longlonglonglonglonglonglongItem3, ); this.test( longlonglonglonglonglonglongT1, longlonglonglonglonglonglongT2, longlonglonglonglonglonglongT3, ); connect( mapStateToPropsmapStateToProps, mapDispatchToPropsmapDispatchToProps, mergePropsmergeProps, )(Component); ``` ## Output 2 ----- Indent style: Tab Line width: 80 Quote style: Double Quotes Quote properties: As needed Trailing comma: ES5 Semicolons: Always ----- ```ts function test< longlonglonglonglonglonglongT1, longlonglonglonglonglonglongT2, longlonglonglonglonglonglongT3 >( longlonglonglonglonglonglongItem1, longlonglonglonglonglonglongItem2, longlonglonglonglonglonglongItem3 ) {} const test1 = < longlonglonglonglonglonglongT1, longlonglonglonglonglonglongT2, longlonglonglonglonglonglongT3 >( longlonglonglonglonglonglongItem1, longlonglonglonglonglonglongItem2, longlonglonglonglonglonglongItem3 ) => {}; test< longlonglonglonglonglonglongT1, longlonglonglonglonglonglongT2, longlonglonglonglonglonglongT3 >( longlonglonglonglonglonglongItem1, longlonglonglonglonglonglongItem2, longlonglonglonglonglonglongItem3 ); this.test( longlonglonglonglonglonglongT1, longlonglonglonglonglonglongT2, longlonglonglonglonglonglongT3 ); connect( mapStateToPropsmapStateToProps, mapDispatchToPropsmapDispatchToProps, mergePropsmergeProps )(Component); ``` ## Output 3 ----- Indent style: Tab Line width: 80 Quote style: Double Quotes Quote properties: As needed Trailing comma: None Semicolons: Always ----- ```ts function test< longlonglonglonglonglonglongT1, longlonglonglonglonglonglongT2, longlonglonglonglonglonglongT3 >( longlonglonglonglonglonglongItem1, longlonglonglonglonglonglongItem2, longlonglonglonglonglonglongItem3 ) {} const test1 = < longlonglonglonglonglonglongT1, longlonglonglonglonglonglongT2, longlonglonglonglonglonglongT3 >( longlonglonglonglonglonglongItem1, longlonglonglonglonglonglongItem2, longlonglonglonglonglonglongItem3 ) => {}; test< longlonglonglonglonglonglongT1, longlonglonglonglonglonglongT2, longlonglonglonglonglonglongT3 >( longlonglonglonglonglonglongItem1, longlonglonglonglonglonglongItem2, longlonglonglonglonglonglongItem3 ); this.test( longlonglonglonglonglonglongT1, longlonglonglonglonglonglongT2, longlonglonglonglonglonglongT3 ); connect( mapStateToPropsmapStateToProps, mapDispatchToPropsmapDispatchToProps, mergePropsmergeProps )(Component); ```