prettier-plugin-templ-script
Advanced tools
Comparing version
{ | ||
"name": "prettier-plugin-templ-script", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Prettier plugin for .templ files with script element and class attribute formatting.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
# prettier-plugin-templ-script | ||
> Prettier plugin for `<script>` elements in templ. | ||
> Prettier plugin for .templ files with script element and class attribute formatting. | ||
**Note:** This cannot work with nested `<script>` elements. | ||
**Note: This cannot work with nested script elements.** | ||
## Features | ||
- Formats JavaScript in script elements (defaults to tabs for Go convention consistency) | ||
- Formats class attributes in all elements (compatible with [Tailwind's Prettier plugin](https://github.com/tailwindlabs/prettier-plugin-tailwindcss)) | ||
## Install | ||
@@ -8,0 +13,0 @@ |
4965
6.09%25
25%