{"library":"prettier-plugin-eta","title":"prettier-plugin-eta","description":"Prettier plugin for formatting Eta template files (`.eta`) with full-document support. Version 0.2.11, released periodically on GitHub. Formats JavaScript inside Eta tags using babel-ts and surrounding HTML via Prettier's HTML parser, preserving trim markers and template literals. Honors standard Prettier options. Also exposes an Eta-aware HTML tag matcher for editor tooling.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install prettier-plugin-eta"],"cli":null},"imports":["add 'prettier-plugin-eta' to plugins array in Prettier config (e.g., .prettierrc)","import { findMatchingHtmlTag } from 'prettier-plugin-eta/html-tag-matcher'","import plugin from 'prettier-plugin-eta'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// .prettierrc\n{\n  \"plugins\": [\"prettier-plugin-eta\"],\n  \"printWidth\": 100,\n  \"singleQuote\": true,\n  \"tabWidth\": 2\n}\n\n// Run:\n// npx prettier --write \"views/**/*.eta\"\n\n// Example Eta template (input.eta):\n// <html>\n//   <body>\n//     <%= it.users.map(u => u.name).join(', ') %>\n//   </body>\n// </html>\n\n// After formatting (output.eta):\n// <html>\n//   <body>\n//     <%= it.users.map((u) => u.name).join(\", \") %>\n//   </body>\n// </html>","lang":"typescript","description":"Install the plugin, configure it in .prettierrc, and format .eta files with Prettier.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}