bundl-eslint
v2.0.0
Published
Lint your code to validate code style and prevent potential errors
Downloads
3
Readme
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"
}
})