1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 13:32:50 -05:00
Files
DankMaterialShell/quickshell/qmlformat-all.sh
Marcus Ramberg 7c88865d67 Refactor pre-commit hooks to use prek (#976)
* ci: change to prek for pre-commit

* refactor: fix shellcheck warnings for the scripts

* chore: unify whitespace formatting

* nix: add prek to dev shell
2025-12-11 09:11:12 -05:00

8 lines
249 B
Bash
Executable File

#!/usr/bin/env bash
# Find and format all QML files, then fix pragma ComponentBehavior
find . -name "*.qml" -exec sh -c '
qmlfmt -t 4 -i 4 -b 250 -w "$1"
sed -i "s/pragma ComponentBehavior$/pragma ComponentBehavior: Bound/g" "$1"
' _ {} \;