Loading ...
Sorry, an error occurred while loading the content.

3178Re: [jslint] JSLint in Unix

Expand Messages
  • Dominic Mitchell
    Mar 17, 2013
    • 0 Attachment
      On Sun, Mar 17, 2013 at 4:33 PM, Michael Mikowski <z_mikowski@...>wrote:

      > As an alternative, this shell script works nicely if you have Java
      > installed. It uses the jslint4java release from
      > http://code.google.com/p/jslint4java/ which uses Rhino. You can replace
      > the path (/usr/local/lib/jslint4java-2.0.2/jslint4java-2.0.2.jar)
      > with the path to the jslint4java jar you have downloaded. I found its
      > performance to be quite reasonable, although I expect the node.js
      > implementation should be faster.
      >
      > =======================
      > #!/bin/bash
      >
      > # See http://code.google.com/p/jslint4java/
      >
      > for jsfile in $@;
      > do /usr/bin/java \
      > -jar /usr/local/lib/jslint4java-2.0.2/jslint4java-2.0.2.jar \
      > "$jsfile";
      > done
      >

      You should be able to reduce this to:

      #/bin/bash
      /usr/bin/java -jar /usr/local/lib/jslint4java-2.0.2/jslint4java-2.0.2.jar
      "$@"


      -Dom


      >
      >
      >
      > ________________________________
      > From: argillaceousvis <visaudi@...>
      > To: jslint_com@yahoogroups.com
      > Sent: Saturday, March 16, 2013 1:55 PM
      > Subject: Re: [jslint] JSLint in Unix
      >
      >
      >
      > Dylon,
      >
      > This is great!
      >
      > Thank you so much!
      >
      > --- In jslint_com@yahoogroups.com, Dylon Edwards <integr8e@...> wrote:
      > >
      > > I maintain a fork of jslint-utils, that uses Node.js (I haven't been
      > > maintaining the Rhino scripts). It may be of use to you:
      > > https://github.com/dylon/jslint-utils
      > >
      > > Dylon
      > >
      > >
      > > On Sat, Mar 16, 2013 at 1:04 PM, argillaceousvis <visaudi@...> wrote:
      > >
      > > > **
      > > >
      > > >
      > > > I saw that a while ago someone had made a Unix JSLint Wrapper.
      > > >
      > > > It looks like it hasn't been updated for quite some time.
      > > >
      > > > Anyone know of any projects that do this?
      > > >
      > > >
      > > >
      > >
      > >
      > > [Non-text portions of this message have been removed]
      > >
      >
      >
      >
      >
      > [Non-text portions of this message have been removed]
      >
      >
      >
      > ------------------------------------
      >
      > Yahoo! Groups Links
      >
      >
      >
      >


      [Non-text portions of this message have been removed]
    • Show all 7 messages in this topic