How can I get JSlint options to work?

57 views
Skip to first unread message

Frederic Hemberger

unread,
Nov 15, 2009, 8:35:00 AM11/15/09
to Juicer
Is there any method to pass options to juicer's JSlint validation?
Usually this is handled by special comments in the JS file:

/* jslint [options] */ and
/* global [global variables] */

In the JSlint web-interface, everything works fine, as soon as I'm
using juicer, these options are ignored and validation fails.

Ryan Parman

unread,
Nov 15, 2009, 1:21:32 PM11/15/09
to juice...@googlegroups.com
Yeah, I'm having the same problem as well.

--
Ryan Parman
<http://ryanparman.com>

Christian Johansen

unread,
Nov 15, 2009, 2:45:59 PM11/15/09
to juice...@googlegroups.com
On Nov 15, 2009, at 5:35 AM, Frederic Hemberger wrote:

>
> Is there any method to pass options to juicer's JSlint validation?
> Usually this is handled by special comments in the JS file:
>
> /* jslint [options] */ and
> /* global [global variables] */
>
> In the JSlint web-interface, everything works fine, as soon as I'm
> using juicer, these options are ignored and validation fails.

That seems strange. I've been using juicer verify on files with jslint instructions like that with no problems. I think perhaps your comments should not include a leading space, i.e.:

/*jslint [option] */
/*global window */

Also, you could try to fetch a new version of JsLint, in case you're working on an old install?

--
MVH
Christian
Message has been deleted

Frederic Hemberger

unread,
Nov 16, 2009, 3:44:35 PM11/16/09
to Juicer
Ahh, removing the whitespace did the trick, thanks.

Christian Johansen

unread,
Nov 18, 2009, 3:22:49 PM11/18/09
to juice...@googlegroups.com
Glad to hear it :) Juicer simply runs the jslint command for you, so it's fairly impossible for it to break stuff inside the script files that jslint is working on... :)

Christian


On Mon, Nov 16, 2009 at 21:44, Frederic Hemberger <frederic....@googlemail.com> wrote:

Ahh, removing the whitespace did the trick, thanks.



--
MVH
Christian
Reply all
Reply to author
Forward
0 new messages