--- source: crates/biome_formatter_test/src/snapshot_builder.rs info: json/range/unary-expression.json --- # Input ```json {a: [ 1, -2, -3 ], b: [1, 2] } ``` # Prettier differences ```diff --- Prettier +++ Biome @@ -1 +1,7 @@ -{ "a": [1, -2, -3], "b": [1, 2] } +{a: +[ +1, -2, -3 + +], +b: [1, 2] +} ``` # Output ```json {a: [ 1, -2, -3 ], b: [1, 2] } ``` # Errors ``` unary-expression.json:1:2 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Property key must be double quoted > 1 │ {a: │ ^ 2 │ [ 3 │ 1, unary-expression.json:8:1 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Property key must be double quoted 7 │ ], > 8 │ b: [1, 2] │ ^ 9 │ } 10 │ ```