Shopify / theme-check

The Ultimate Shopify Theme Linter
Other
337 stars 95 forks source link

The autocorrect flag creates templates with incorrect JSON when creating a new JSON templates #578

Closed nick-addison-applications closed 2 years ago

nick-addison-applications commented 2 years ago

If I run Shopify theme check --auto-correct when there are missing JSON templates (ex product.json), the CLI will create a new file and insert the content "null" rather than a blank JSON object "{}".

After running the auto correct, the newly created files will cause shopify theme serve and other theme commands to fail.