In a similar topic I've been pointed to a tool called qmlformat. It's basically clang-format for QML.
It seems to work quite well. It insists on a very specific code layout : https://doc.qt.io/qt-5/qml-codingconventions.html id first, then newly declared properties and so on. This makes the changes applied to files quite extreme. It also removes braces on single line if statements with no possibility for configuration currently. I don't want to block the C++ tidying discussion on this, but it's definitely worth looking into in parallel. David