Skip to content

nicolaibach/prettier-plugin-liquid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prettier-plugin-liquid

Prettier plugin to make Prettier parse Liquid files as HTML.

This plugin doesn't provide any special formatting for the Liquid markup language!

Why this plugin?

I want Prettier to format Liquid templates onSave in VSCode. I tried changing VSCodes's language identifier for .liquid files:

"files.associations": {
  "*.liquid": "html"
}

This works in the way that Prettier will process those files, but highlighting and auto-completion for Liquid specific syntax breaks.

Instead of telling VSCode to treat .liquid files as HTML, the plugin registers Prettier's default HTML parser for the liquid language.

Installation

npm install -D https://github.com/nicolaibach/prettier-plugin-liquid.git

Usage

Plugins are automatically loaded if you have them installed in the same node_modules directory where prettier is located.

–– https://prettier.io/docs/en/plugins.html#using-plugins

Resources

License

This project is MIT licensed.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors