{"repo":"prettier/plugin-pug","free":true,"listed":false,"github":"https://github.com/prettier/plugin-pug","clone":"git clone https://github.com/prettier/plugin-pug.git","description":"Prettier Pug Plugin","language":"TypeScript","stars":208,"topics":["pug","prettier","prettier-plugin","formatter","typescript","format-pug"],"license":"MIT","category":"dev-tools","readme_excerpt":"&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; Prettier Pug plugin Intro Prettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary. This plugin adds support for the Pug language to Prettier. --- - Getting started - Usage - Configuration - Workarounds / Known Issues - Integration with editors - Implementation details - Contributing - Credits Getting started Simply install prettier and @prettier/plugin-pug as your project’s devDependencies : Usage CLI Configuration file (.prettierrc) See Standard Prettier overrides and Pug specific options for more options. API Workaround / Known Issue There are some code examples that are not formatted well with this plugin and can damage your code. But there are workarounds for it. These generate even better pug code! Example Issue 114 If you have tags at the top/root that are indented, they will lose indentation due to a technical limitation of pug. Please check these before committing after running this plugin for the first time and fix them manually. Integration with editors If you are using a text editor that supports Prettier integration (e.g. Atom), you can have all Prettier perks for your Pug code too! Use VSCode extension to get support for VSCode. In order to get @prettier/plugin-pug working in projects that do not have local npm de","default_branch":null,"files":null,"tree":[],"storefront":"/r/prettier","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/prettier/plugin-pug/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}