node-jslint icon indicating copy to clipboard operation
node-jslint copied to clipboard

Using current upstream

Open szepeviktor opened this issue 7 years ago • 4 comments

@smikes What should I modify in upstream jslint.js to get it running with this project? I would do it manually. Thank you!!

szepeviktor avatar Sep 22 '18 06:09 szepeviktor

// The jslint function itself.

function jslint(
    source = "",
    option_object = empty(),
    global_array = []
) {

...

};
/*node module.exports = jslint;*/

szepeviktor avatar Sep 22 '18 07:09 szepeviktor

# 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/

szepeviktor avatar Sep 22 '18 07:09 szepeviktor

Version 0.12.1 has latest (2018-11-28) jslint from upstream.

smikes avatar Jan 29 '19 04:01 smikes

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

szepeviktor avatar Sep 14 '19 03:09 szepeviktor