node-jslint
node-jslint copied to clipboard
Using current upstream
@smikes What should I modify in upstream jslint.js to get it running with this project? I would do it manually. Thank you!!
// The jslint function itself.
function jslint(
source = "",
option_object = empty(),
global_array = []
) {
...
};
/*node module.exports = jslint;*/
# Download
wget https://github.com/douglascrockford/JSLint/raw/master/jslint.js
# Patch
sed -e 's#^export default function jslint#function jslint#' -e '$s#$#\n/*node module.exports = jslint;*/#' -i jslint.js
# Activate
mv -v -f jslint.js node_modules/jslint/lib/
Version 0.12.1 has latest (2018-11-28) jslint from upstream.
For 2019-08-03 it is easier.
# Download
wget https://github.com/douglascrockford/JSLint/raw/efefb7d4e22359b6fb1977d33712bcc2fda95f14/jslint.js
# Patch
sed -e 's#^export default Object\.freeze#var jslint = Object.freeze#' -i jslint.js
# Activate
mv -f jslint.js node_modules/jslint/lib/jslint-2019-08-03.js
# Use
node_modules/.bin/jslint --edition=2019-08-03 JavaScript.js