Skip to content
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

Open
szepeviktor opened this issue Sep 22, 2018 · 4 comments
Open

Using current upstream #170

szepeviktor opened this issue Sep 22, 2018 · 4 comments

Comments

@szepeviktor
Copy link
Contributor

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

@szepeviktor
Copy link
Contributor Author

szepeviktor commented Sep 22, 2018

// The jslint function itself.

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

...

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

@szepeviktor
Copy link
Contributor Author

szepeviktor commented Sep 22, 2018

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

@smikes
Copy link
Collaborator

smikes commented Jan 29, 2019

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

@szepeviktor
Copy link
Contributor Author

szepeviktor commented Sep 14, 2019

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants