Cómo usar Formateador de Lightning Web Component
- Pega la plantilla.
- Copia el resultado.
Sobre Formateador de Lightning Web Component
Aplica formato consistente a plantillas de Lightning Web Components.
Formatea plantillas LWC.
Aplica formato consistente a plantillas de Lightning Web Components.
It would treat unquoted bindings as invalid HTML and could add quotes around them. This one parses the template as LWC.
No, only the template. Use the Babel Formatter for the JS part of the component.
No. LWC is a Salesforce framework, and this tool simply formats its template syntax.
The formatting engine for this language is downloaded the first time you use it, then cached by your browser. After that, formatting is instant and nothing leaves your machine.