You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

prettier-plugin-templ-script

Package Overview
Dependencies
Maintainers
0
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prettier-plugin-templ-script

Prettier plugin for .templ files with script element and class attribute formatting.

0.3.4
latest
Source
npmnpm
Version published
Weekly downloads
858
65%
Maintainers
0
Weekly downloads
 
Created
Source

prettier-plugin-templ-script

Prettier plugin for .templ files with script element and class attribute formatting.

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)

Install

npm install --save-dev prettier-plugin-templ-script

Usage

{
  "plugins": ["prettier-plugin-templ-script"]
}

Keywords

prettier

FAQs

Package last updated on 21 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts