bundl-eslint

2.0.0 • Public • Published

bundl-eslint

Easily check your code for style and correctness with the popular ESLint utility

Runs with the amazing Bundl build tool

Install

$ npm install --save-dev bundl-eslint

Configure

var Bundl = require('bundl');
var eslint = require('bundl-eslint');
 
Bundl.task('lint', function (done) {
    var options = {
        rules: {
            "no-unused-vars": 0
        }
    };
 
    new Bundl('src/javascripts/*')
        .src(eslint(options))
        .go(done);
});

Use

$ node bundl lint

Options

Pass the same object that you would put into your .eslintrc.json file (See Full ESLint Documentation)

eslint({
    extends: "eslint:recommended",
    env: {
        browser: true
    },
    globals: {
        "foo": true
    },
    rules: {
        eqeqeq: "warn"
    }
})

Readme

Keywords

none

Package Sidebar

Install

npm i bundl-eslint

Weekly Downloads

1

Version

2.0.0

License

MIT

Unpacked Size

2.93 kB

Total Files

8

Last publish

Collaborators

  • seebigs