Feature request: Allow the first attribute to stay on the same line as the tag
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- javascript
- Ambito
- tooling
Direzione di ricerca
Non viene indicato alcun file, test o punto di ingresso. Inizia riproducendo l'XML fornito con le opzioni elencate, quindi analizza il comportamento di formattazione del plugin per gli attributi mandati a capo; il lavoro è completato quando il primo attributo rimane accanto al tag, mentre gli attributi rimanenti mantengono il rientro mostrato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
bracketSameLine
true
printWidth
No response
singleAttributePerLine
true
tabWidth
4
xmlWhitespaceSensitivity
strict
xmlSelfClosingSpace
true
Input XML
<Button id="idCancelCommentBtn" press=".cancelComment" text="{i18n>cancelBtn}" />
Current output XML
<Button
id="idCancelCommentBtn"
press=".cancelComment"
text="{i18n>cancelBtn}" />
Expected output XML
<Button id="CancelCommentBtn"
press=".cancelComment"
text="{i18n>cancelBtn}" />
First of all, thank you for creating and maintaining this plugin. It's very helpful for our CI pipeline and pre-commit hook. And I understand that as a prettier plugin, it has the right to be opinionated, so I am not sure if it's a huge ask...
Anyways, I am trying to migrate a project that's formatted with Red Hat's XML VS Code plugin, and the current XML format is the same as the "Expected out XML". So I am hoping maybe the prettier plugin can offer such a configuration option. Thank you!
- Lingua principale
- JavaScript
- Stelle
- 278
- Fork
- 46
- Merge medio
- 1m
- PR unite (30g)
- 13
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di prettier/plugin-xml
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
prettier/plugin-xml#996 ·
-
Incorrect indentation with xmlWhitespaceSensitivity "preserve" inside a sibling of a text node Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
prettier/plugin-xml#995 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
prettier/plugin-xml#986 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 55/100
prettier/plugin-xml#981 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
prettier/plugin-xml#937 · 1 reazione ·
Tutte le issue di prettier/plugin-xml
Issue simili
-
awaiting triage bug Causes friction Hop Gui P1 P2 Transforms
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Improve Title Support Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
georgestephanis/p2026#40 ·
-
Enatega Customer and Rider app: Add-ons price is not visible to customer after order is placed. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Margaret-Petersen/food-delivery-app-clone-react-native#1981 ·