2.0.0 • Published 6 years ago

bundl-eslint v2.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

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"
    }
})
2.0.0

6 years ago

1.1.0

7 years ago

1.0.0

8 years ago