diff --git a/package.json b/package.json index 1c7c002f..fcb464ad 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "docs:dev": "vuepress dev docs --host 127.0.0.1", "docs:build": "vuepress build docs", "examples:build": "./scripts/build-examples.sh", + "examples:lint": "./scripts/lint-examples.sh", "examples:package": "./scripts/package-examples.sh" } } diff --git a/scripts/lint-examples.sh b/scripts/lint-examples.sh new file mode 100755 index 00000000..13fffdae --- /dev/null +++ b/scripts/lint-examples.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +# +# Script to run qmllint on all example qml files +# + +for f in $(find docs/ -name *.qml) +do + qmllint $f +done