Global JSlint options

222 views
Skip to first unread message

BigBlueHat

unread,
Feb 24, 2011, 1:27:49 PM2/24/11
to Juicer
Would it be possible to add a JSLint config param (or config file...)
to allow for global JSLint options vs. adding them as comments in each
file? This is particularly important when you want to add undef: true
on a single concatenated (though un-minified) file--as prior to
concatenation undef throws far more errors than it's worth.

Would this be possible?

Thanks,
Benjamin

Christian Johansen

unread,
Mar 4, 2011, 4:44:33 AM3/4/11
to juice...@googlegroups.com, BigBlueHat
It sure would be useful. Does anyone know how to forward config options for JsLint when run with Rhino on the command line?

Christian
--
MVH
Christian

MRoderick

unread,
Mar 12, 2011, 3:24:25 PM3/12/11
to Juicer
If I understand it correctly, your challenge is that your files are
referencing functions & objects defined in each other.

What I do to keep track of dependencies, and have JSLint bitch at me
when I introduce new ones, is add a second line of lint instructions
to each file, like so:

/*global jQuery, setTimeout, clearTimeout */

Would this work for you?

/Morgan

Ryan Parman

unread,
Mar 12, 2011, 10:27:37 PM3/12/11
to juice...@googlegroups.com
Sort of off-topic, sort of not...

Have you guys tried JS Hint (as opposed to JS Lint)? http://jshint.com

It might offer the flexibility you're looking for.

Christian Johansen

unread,
Mar 15, 2011, 4:45:02 AM3/15/11
to juice...@googlegroups.com, Ryan Parman
Would be cool to include jshint in Juicer!
--
MVH
Christian
Reply all
Reply to author
Forward
0 new messages