jshint-loader

jshint loader module for webpack

npm install jshint-loader
49 downloads in the last day
211 downloads in the last week
1 069 downloads in the last month

jshint loader for webpack

Usage

Apply the jshint loader as preloader.

preLoaders: [
    {
        test: "\\.js$", // include .js files
        exclude: "node_modules", // exclude any file in a node_modules folder
        // exclude: ["(node|web)_modules", "jam"], // exclude more files
        loader: "jshint"
    }
],
// more options in the optional jshint object
jshint: {
    // any jshint option http://www.jshint.com/docs/
    // i. e.
    camelcase: true,

    // jshint errors are displayed by default as warnings
    // set emitErrors to true to display they as errors
    emitErrors: false,

    // jshint to not interrupt the compilation
    // if you want any file with jshint errors to fail
    // set failOnHint to true
    failOnHint: false
}

License

MIT (http://www.opensource.org/licenses/mit-license.php)

npm loves you