--- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/function/function_comments.js --- # Input ```js function a() { // trailing comment let a = 2; /** leading comment **/ } function b() // leading comment { // trailing } function c( //some comment foo, bar, ) {} (function d() // a { return 42 }); function e() // a { ; }; function f() // a { a; }; function h() /* a */ { a; }; ``` ============================= # Outputs ## Output 1 ----- Indent style: Tab Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes JSX quote style: Double Quotes Quote properties: As needed Trailing comma: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto ----- ```js function a() { // trailing comment let a = 2; /** leading comment **/ } function b() { // leading comment // trailing } function c( //some comment foo, bar, ) {} (function d() { // a return 42; }); function e() { // a } function f() { // a a; } function h() /* a */ { a; } ```