Use js-beautify for formatting HTML #1089

Closed
nitrohorse wants to merge 21 commits from add-beautify into master
3 changed files with 4 additions and 8 deletions
Showing only changes of commit 271cee8bca - Show all commits
+3
View File
@@ -0,0 +1,3 @@
{
"*.html": "bin/html-beautify-check.sh"
}
+1 -3
View File
@@ -1,8 +1,6 @@
#!/bin/bash
# A custom script, that formats the file(s) with html-beautify,
# but instead of changing it, it only errors with 0/1 if it needs to be changed
# Ref: https://web.archive.org/web/20190522172323/https://medium.com/@jtomaszewski/keep-your-code-clean-forever-65c71f7f2df
# Runs html-beautify's format check and errors with 0/1 if it needs to be changed.
APPDIR=$(readlink -f $(dirname $(dirname $0)))
TMPDIR=$(mktemp -d)
cd $APPDIR
-5
View File
@@ -18,11 +18,6 @@
"pre-commit": "node_modules/.bin/lint-staged"
}
},
"lint-staged": {
"**/*.html": [
"bin/html-beautify-check.sh"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/privacytoolsIO/privacytools.io.git"