Skip to content

seebigs/bundl-eslint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published