Update package.json
This commit is contained in:
parent
3e63b62881
commit
271cee8bca
3
.lintstagedrc
Normal file
3
.lintstagedrc
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"*.html": "bin/html-beautify-check.sh"
|
||||||
|
}
|
@ -1,8 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# A custom script, that formats the file(s) with html-beautify,
|
# Runs html-beautify's format check and errors with 0/1 if it needs to be changed.
|
||||||
# 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
|
|
||||||
APPDIR=$(readlink -f $(dirname $(dirname $0)))
|
APPDIR=$(readlink -f $(dirname $(dirname $0)))
|
||||||
TMPDIR=$(mktemp -d)
|
TMPDIR=$(mktemp -d)
|
||||||
cd $APPDIR
|
cd $APPDIR
|
||||||
|
@ -18,11 +18,6 @@
|
|||||||
"pre-commit": "node_modules/.bin/lint-staged"
|
"pre-commit": "node_modules/.bin/lint-staged"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
|
||||||
"**/*.html": [
|
|
||||||
"bin/html-beautify-check.sh"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/privacytoolsIO/privacytools.io.git"
|
"url": "git+https://github.com/privacytoolsIO/privacytools.io.git"
|
||||||
|
Reference in New Issue
Block a user