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

Parse /* jslint */ declarations #237

Closed
strugee opened this issue May 24, 2015 · 1 comment
Closed

Parse /* jslint */ declarations #237

strugee opened this issue May 24, 2015 · 1 comment

Comments

@strugee
Copy link

strugee commented May 24, 2015

js2-mode should be able to parse /* jslint */ declarations. This is especially useful for e.g. Node.js code, where you'd want to have /* jslint node */.

Looking at M-x customize-group RET js2-mode, it appears that js2-mode already has the capability to do this. It just needs to be hooked up to some parsing logic.

@dgutov
Copy link
Collaborator

dgutov commented May 24, 2015

js2-mode already has the capability to do this

Indeed. And someone will have to decide whether to use our lists for node, browser, ecma-262, or obey JSLint, which assigns somewhat different meanings to all of them except node, it seems. browser is vastly different.

Patch welcome.

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