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

es6 support #7

Closed
rastalamm opened this issue Nov 14, 2015 · 2 comments
Closed

es6 support #7

rastalamm opened this issue Nov 14, 2015 · 2 comments

Comments

@rastalamm
Copy link

How can I use the below code (template strings) with jslint?

`${apiHost}/users/${user.id}/cart`

Keep on getting errors

@devdoc
Copy link
Owner

devdoc commented Dec 7, 2015

Right now, I don't think you can do that without some manual tweaking.

SublimeLinter-jslint uses node-jslint to do the actual linting. node-jslint still uses the old jslint version by default, which doesn't support es6/es2015 syntax. node-jslint does provide command line options to use the new jslint which does support es6/es2015 syntax. However, the new version also uses 0-based line number indexing which will make Sublime Text show the error indicators on wrong lines (see issue #5).

You could try to manually tweak your linter installation (see issue #5 for details) or wait for the default behavior of node-jslint to change (the change has been announced and should be coming in node-jslint v1.0.0.

@devdoc
Copy link
Owner

devdoc commented May 23, 2016

node-jslint now supports a new option which can be used to enable es6/es2015 syntax support without breaking the error highlighting inside Sublime Text. See issue #5 for the solution.

@devdoc devdoc closed this as completed May 23, 2016
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