Closed miazbikowski closed 4 days ago
🎩 ed and everything looks amazing! Quick follow-up question, why would this not have a warning:
🎩 ed and everything looks amazing! Quick follow-up question, why would this not have a warning
@navdeep5 and
works just like or
and there is a warning
@navdeep5 x in col
is not valid liquid. It should be col contains x
. It's not working for that because the markup doesn't parse/goes to the fallback rule of having markup as a string.
What are you adding in this PR?
Part of https://github.com/Shopify/theme-tools/issues/463
We want to warn developers against the use of
block.id
in their liquid code in cases where the ID's instability could cause problems. This PR addresses usage inif
,elseif
,unless
andcase
blocks. (I've got some comments in the code to demonstrate the cases)Note: did not end up doing
assign
as a variable can have valid use cases (like those in my code comments)Follow ups
Dev docs PR
What did you learn?
console.log
will break your code and not tell you why. This is because of the language server.Before you deploy
changeset
allChecks
array insrc/checks/index.ts
yarn build
and committed the updated configuration filestheme-app-extension.yml
configchangeset
changeset