This isn't possible today out-of-the-box. You might want to look at
gulp-eslint for an example of wrapping ESLint in a stream.

-N

On Mon, May 4, 2015 at 3:44 PM, Denim Demon <[email protected]> wrote:

> Hi All,
>
> Can anyone tell me if it's possible to pipe a browserify bundle into
> eslint using the browserify API ?
>
> I have the following:
>
> var fs = require("fs");
> var browserify = require("browserify");
> var babelify = require("babelify");
> var linter = require("eslint").linter;
>
> browserify({ debug: true })
>   .transform(babelify)
>   .require("./script.js", { entry: true })
>   .bundle()
>   .on("error", function (err) {
>     console.log("Error : " + err.message);
>   })
>  .pipe(fs.createWriteStream("bundle.js"));
>
>
> Another question would be, if this were possible where would the pipe
> happen ?
> I assume before the transform from babelify ?
>
> Thanks
>
>  --
> You received this message because you are subscribed to the Google Groups
> "ESLint" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 

______________________________
Nicholas C. Zakas
@slicknet

Author, Professional JavaScript for Web Developers
Buy it at Amazon.com:
http://www.amazon.com/Professional-JavaScript-Developers-Nicholas-Zakas/dp/1118026691/ref=sr_1_3

-- 
You received this message because you are subscribed to the Google Groups 
"ESLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to