We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
You might work in a big team and would like to make it super easy for everyone to maintain a code style.
Setting up a pre-commit hook will make it so prettier will run on files that were changed before a commit is even made.
Even if your coworkers haven't setup prettier in their editor.
Add @shopify/prettier-plugin-liquid as a dependency of your project.
@shopify/prettier-plugin-liquid
# npm way npm install -D prettier @shopify/prettier-plugin-liquid # yarn way yarn add -D prettier @shopify/prettier-plugin-liquid
Follow the official instructions from prettier on how to setup a pre-commit hook.