-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using current upstream #170
Comments
// 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@smikes What should I modify in upstream jslint.js to get it running with this project?
I would do it manually.
Thank you!!
The text was updated successfully, but these errors were encountered: