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

Integration with Rails Assets Pipeline #64

Open
bsides opened this issue Jan 29, 2014 · 1 comment
Open

Integration with Rails Assets Pipeline #64

bsides opened this issue Jan 29, 2014 · 1 comment

Comments

@bsides
Copy link

bsides commented Jan 29, 2014

Hi,

I don't consider this an issue, but it would be awesome if this could read JS files with require directives from Rails assets pipeline. Example:

I have a file called info.js that reads:

//= require jquery
function initializeJSPlugins($target) {
  if ( $target === undefined ) { $target = $("body"); }
}

JSHint tells me that $ is undefined, but only bacuase it didn't read the line //= require jquery properly. I'm not asking it to JSHint jquery, just this file, but after reading jquery... does that make any sense?

If my request does make sense and there's any way to make this to work please let me know. Thanks in advance 👍

@victorporof
Copy link
Owner

In the meantime, you could try adding those globals into the configuration file. See the readme.

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