Open ghost opened 1 year ago
Yeah, unfortunate known issue. The JSON check came before we had a prettier plugin. I anticipate we're going to let go of some of those style checks eventually as they are redundant and sometimes incompatible.
What's happening here is prettier's JSON formatter is incompatible with Ruby's JSON.pretty_generate method. IMO, prettier's is better.
Describe the bug Prettier removes new lines after opening a bracket, while Shopify Theme Check adds a new line after opening brackets
Expected output
Actual output
Debugging information
Additional context
Theme Check Configuration
Prettier Configuration