Unstable formatting of indexes and methods invocations in javascript #16289
Labels
status:awaiting response
Issues that require answers to questions from maintainers before action can be taken
Prettier 3.2.5
Playground link
# Options (if any):
Input:
This happens when the snippet below is indented because of previous code like in
https://raw.githubusercontent.com/glideinWMS/glideinwms/3dcd68c8730c0d1b17bb6b2d7c38e094d9ef9f28/creation/web_base/factoryEntryStatusNow.html
Output:
Expected output:
Something idempotent/stable. Prettier keeps looping between one and the other.
Either the first or the second one (my preference but would be OK w/ either one)
Why?
The problem is not with one specific format but with the fact that prettier keeps changing from one to the other each time I run it on this code. It is never happy with it and keeps changing the code.
Any of the 2 snippets above w/o indentation gives:
The problem is when they are indented because of the rest of the code in the file.
For reference, this is the full file:
https://raw.githubusercontent.com/glideinWMS/glideinwms/3dcd68c8730c0d1b17bb6b2d7c38e094d9ef9f28/creation/web_base/factoryEntryStatusNow.html
Prettier keeps looping doing and un-doing the changes in this commit. This was applied to a file formatted by prettier and not touched:
The text was updated successfully, but these errors were encountered: