diff --git a/.gitignore b/.gitignore index c928583ee..17b925842 100644 --- a/.gitignore +++ b/.gitignore @@ -41,7 +41,3 @@ src/icons/skin/build-icons/icons/*.png # CMake build directory build/ - -# Web UI tools -node_modules -package-lock.json diff --git a/src/webui/www/.gitignore b/src/webui/www/.gitignore new file mode 100644 index 000000000..2f85f13cb --- /dev/null +++ b/src/webui/www/.gitignore @@ -0,0 +1,5 @@ +# Web UI tools +.eslintcache +.stylelintcache +node_modules +package-lock.json diff --git a/src/webui/www/package.json b/src/webui/www/package.json index 818d48738..7149a8628 100644 --- a/src/webui/www/package.json +++ b/src/webui/www/package.json @@ -7,7 +7,7 @@ }, "scripts": { "format": "js-beautify -r *.mjs private/*.html private/scripts/*.js private/views/*.html public/*.html public/scripts/*.js && prettier --write **.css", - "lint": "eslint *.mjs private/*.html private/scripts/*.js private/views/*.html public/*.html public/scripts/*.js && stylelint **/*.css && html-validate private public" + "lint": "eslint --cache *.mjs private/*.html private/scripts/*.js private/views/*.html public/*.html public/scripts/*.js && stylelint --cache **/*.css && html-validate private public" }, "devDependencies": { "@stylistic/eslint-plugin": "*",