Update package.json

This commit is contained in:
nitrohorse 2019-08-03 20:34:35 -07:00
parent 3e63b62881
commit 271cee8bca
No known key found for this signature in database
GPG Key ID: 6F3175557E766CBF
3 changed files with 4 additions and 8 deletions

3
.lintstagedrc Normal file
View File

@ -0,0 +1,3 @@
{
"*.html": "bin/html-beautify-check.sh"
}

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

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"