Skip to content

fix(prettier-plugin-liquid): support Jinja prettier-ignore comments - #1341

Open
efegokdemir wants to merge 1 commit into
Shopify:mainfrom
efegokdemir:efe/fix-jinja-prettier-ignore
Open

efegokdemir wants to merge 1 commit into
Shopify:mainfrom
efegokdemir:efe/fix-jinja-prettier-ignore

Conversation

@efegokdemir

Copy link
Copy Markdown

What are you adding in this PR?

Support Jinja {# prettier-ignore #} comments by recognising them as ignore directives and preserving the comment and following Liquid node verbatim. The regression test failed before the fix and passes with it. Verified with the plugin suite under Prettier 2 and 3 (144 tests each), type-check, build, formatting check and targeted idempotence test. Fixes #1236.

What's next? Any followup issues?

No follow-up work identified.

What did you learn?

The Liquid parser keeps Jinja comments as text nodes, so the ignore check needs to recognise the comment in that form.

Tophatting

  • I added screenshots of the changes (before and after the changes if applicable)

Before you deploy

  • I included a patch bump changeset

@efegokdemir
efegokdemir requested a review from a team as a code owner October 16, 2026 03:20

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support prettier-ignore in jinja comments

1 participant