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

2 Answers 2


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 Sep 3, 2019 at 11:32
  • 1
    I ended up using this package internally after modifying it to work, liquid-node -> liquid, you can see my implementation here: github.com/cgilbe27/liquid-linter Apr 12, 2022 at 14:16

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 Sep 5, 2019 at 13:53
  • Also, the link is for Ruby on Rails Sep 5, 2019 at 14:00
  • That's because Shopify wrote liquid in Ruby. This is the original implementation.
    – oxr463
    Sep 5, 2019 at 20:26
  • Unfortunately the original implementation doesnt allow me to lint the language Sep 6, 2019 at 21:21

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