--- source: crates/rome_formatter_test/src/snapshot_builder.rs info: test_file: js/arrays/numbers-negative.js --- # Input ```js const numbers1 = [-2017,-506252,-744011292,-7224,-70.4,-83353.6,-708.4,-174023963.52,-40385, // comment1 -380014, -253951682,-728,-15.84,-2058467564.56,-43,-33,-85134845,-67092,-1,-78820379,-2371.6,-16,7, // comment2 -62454,-4282239912, -10816495.36,0.88,-100622682,8.8,-67087.68000000001,-3758276,-25.5211,-54,-1184265243,-46073628,-280423.44, -41833463,-27961.12,-305.36,-199875.28]; const numbers2 = [-234, -342 // comment3 , -223, -333333.33,12345] ``` # Prettier differences ```diff --- Prettier +++ Rome @@ -2,10 +2,12 @@ -2017, -506252, -744011292, -7224, -70.4, -83353.6, -708.4, -174023963.52, -40385, // comment1 - -380014, -253951682, -728, -15.84, -2058467564.56, -43, -33, -85134845, - -67092, -1, -78820379, -2371.6, -16, 7, + -380014, + -253951682, -728, -15.84, -2058467564.56, -43, -33, -85134845, -67092, -1, + -78820379, -2371.6, -16, 7, // comment2 - -62454, -4282239912, -10816495.36, 0.88, -100622682, 8.8, -67087.68000000001, + -62454, + -4282239912, -10816495.36, 0.88, -100622682, 8.8, -67087.68000000001, -3758276, -25.5211, -54, -1184265243, -46073628, -280423.44, -41833463, -27961.12, -305.36, -199875.28, ]; ``` # Output ```js const numbers1 = [ -2017, -506252, -744011292, -7224, -70.4, -83353.6, -708.4, -174023963.52, -40385, // comment1 -380014, -253951682, -728, -15.84, -2058467564.56, -43, -33, -85134845, -67092, -1, -78820379, -2371.6, -16, 7, // comment2 -62454, -4282239912, -10816495.36, 0.88, -100622682, 8.8, -67087.68000000001, -3758276, -25.5211, -54, -1184265243, -46073628, -280423.44, -41833463, -27961.12, -305.36, -199875.28, ]; const numbers2 = [ -234, -342, // comment3 -223, -333333.33, 12345, ]; ```