{"library":"prettier-plugin-angular","title":"prettier-plugin-angular","description":"A Prettier plugin for formatting Angular HTML templates by aligning attributes on multiple lines using minimum line breaks, sorting attributes by category (ref, structural, twoWay, input, output, animation, static, boolean), outputting self-closing elements, and formatting Angular control flow blocks (@if, @for, etc.). Current stable version is 0.3.2, released on npm with Prettier >=3.0.0 as a peer dependency. Key differentiators include attribute alignment strategies (single-line, aligned, fallback), configurable attribute order via angularAttributeOrder, and built-in handling of Angular-specific syntax. Ships TypeScript type declarations.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install prettier-plugin-angular"],"cli":null},"imports":["const prettier = require('prettier'); (no direct import of plugin necessary; plugin is auto-loaded via .prettierrc)","import type { Plugin } from 'prettier'; (TypeScript types from Prettier)","// No exported symbols; set options in .prettierrc or via Prettier API with { parser: 'angular-attributes', angularAttributeSort: true }"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// Install: npm install -D prettier prettier-plugin-angular\n// Create .prettierrc:\n{\n  \"plugins\": [\"prettier-plugin-angular\"],\n  \"overrides\": [\n    {\n      \"files\": \"*.html\",\n      \"options\": {\n        \"parser\": \"angular-attributes\",\n        \"angularAttributeSort\": true\n      }\n    }\n  ]\n}\n// Format: npx prettier --write \"**/*.html\"","lang":"typescript","description":"Install and configure the plugin for Angular HTML template formatting with attribute sorting enabled.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}