Has anyone here had a good experience linting/doing code quality checking for liquid files within Shopify?

I'm having a hard time trying to find a linter that will validate the liquid code in my HTML without throwing an error.

If anyone knows of a cli tool/service/program that does this Or a list of different services you used to do this.

Any help would be appreciated


Liquid includes this functionality by default,

Liquid also comes with a stricter parser that can be used when editing templates to give better error messages when templates are invalid.

Source: https://github.com/Shopify/liquid#error-modes


Liquid is an open-source template language created by Shopify and written in Ruby.

Source: https://shopify.github.io/liquid

  • Theres no way to set the stricter parser for Shopify – Cameron Gilbert Sep 5 '19 at 13:53
  • Also, the link is for Ruby on Rails – Cameron Gilbert Sep 5 '19 at 14:00
  • That's because Shopify wrote liquid in Ruby. This is the original implementation. – rage Sep 5 '19 at 20:26
  • Unfortunately the original implementation doesnt allow me to lint the language – Cameron Gilbert Sep 6 '19 at 21:21

You have one OS linter called Liquid-linter but it is not actively developed anymore.

A node package that lets you lint liquid template strings.

  • Sorry I am looking for something thats hopefully been developed recently or a service – Cameron Gilbert Sep 3 '19 at 11:32

Not the answer you're looking for? Browse other questions tagged or ask your own question.