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

Feature request: Lint only js source scopes #7

Open
pwntester opened this issue Jan 24, 2013 · 3 comments
Open

Feature request: Lint only js source scopes #7

pwntester opened this issue Jan 24, 2013 · 3 comments

Comments

@pwntester
Copy link

Hi,
Would it be possible to lint only the js scopes instead of the whole document?
Think about HTML pages with blocks or like my case, a XML file where some js can be included.
Thanks,
A

@darrenderidder
Copy link
Collaborator

This functionality comes from jslint itself. It already supports HTML files, but not XML files. To request XML support you would need to request it from the author of jslint (https://github.com/douglascrockford/JSLint).

@pwntester
Copy link
Author

Hi, thanks for the quick response.
I meant to use the API function: "view.find_by_selector('source.js')" that can be used to find all specific regions containing a given language code (in this case, js) and then pass all those Regions tos jsLint for further analysis.
So any new syntax that xim different scopes, still can get the benefits from jslint through your great plugin!

@darrenderidder
Copy link
Collaborator

Sounds interesting... let me check it out.

On Thu, Jan 24, 2013 at 11:14 AM, Alvaro [email protected] wrote:

Hi, thanks for the quick response.
I meant to use the API function: "view.find_by_selector('source.js')" that
can be used to find all specific regions containing a given language code
(in this case, js) and then pass all those Regions tos jsLint for further
analysis.
So any new syntax that xim different scopes, still can get the benefits
from jslint through your great plugin!


Reply to this email directly or view it on GitHubhttps://github.com//issues/7#issuecomment-12658628.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants