An open API service indexing awesome lists of open source software.

https://github.com/seebigs/bundl-eslint


https://github.com/seebigs/bundl-eslint

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

          

# bundl-eslint

*Easily check your code for style and correctness with the popular [ESLint](http://eslint.org/) utility*

*Runs with the amazing [Bundl](https://github.com/seebigs/bundl) build tool*

## Install

```
$ npm install --save-dev bundl-eslint
```

## Configure

```js
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](http://eslint.org/docs/user-guide/configuring))

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