Skip to content

Metafield theme-check #575

@aswamy

Description

@aswamy

Is your feature request related to a problem? Please describe.

Follows up #502
We need to verify if metafields being used in the code are valid. If the metafield does not exist, you should see a warning when running shopify theme check

Describe the solution you'd like

For themes:

  • running shopify theme check should verify if the metafield exists on your shop
  • If you don't have the metafield, you should get a warning message

For theme app extensions:

Tasks

  • Update theme-check in theme-tools to error out when metafield definitions dont exist
  • Add lint ignore rules in Dawn + Horizon where we use metafields that don't exist in any shops by default
  • Update CLI so there is a warning when running theme check and metafield isnt defined

NOTE: There are a few differences when you pull metafield definitions from CLI or from Theme Access App via CLI

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions