https://github.com/miguelcastillo/bit-loader-eslint
eslint plugin for bit-loader
https://github.com/miguelcastillo/bit-loader-eslint
Last synced: about 2 months ago
JSON representation
eslint plugin for bit-loader
- Host: GitHub
- URL: https://github.com/miguelcastillo/bit-loader-eslint
- Owner: MiguelCastillo
- License: mit
- Created: 2016-07-16T01:47:42.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-12-20T21:08:28.000Z (over 5 years ago)
- Last Synced: 2024-04-26T10:03:02.375Z (about 1 year ago)
- Language: JavaScript
- Size: 44.9 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bit-loader-eslint
[](https://greenkeeper.io/)
[eslint](http://eslint.org) plugin for bit-loader to lint your JavaScript assets.
## Install
```
$ npm install --save @bit/loader-eslint
```## bit-bundler
Sample configuration for bit-bundler
``` javascript
var Bitbundler = require("@bit/bundler");
var jsPlugin = require("@bit/loader-js");
var eslintPlugin = require("@bit/loader-eslint");var bitbundler = new Bitbundler({
loader: {
plugins: [
eslintPlugin({
extensions: ["js", "jsx"]
}),
jsPlugin()
]
}
});bitbundler.bundle([{
src: "browser.js",
dest: "dist/<%= pkg.name %>.js"
}]);
```## Options
### `exitOnError`
Flag to exit as soon as eslint reports an error. Defaults to false.
``` javascript
eslintPlugin({
exitOnError: true
});
```### `formatter`
You can specify an eslint formatter:
> Other formatters are available [here](http://eslint.org/docs/developer-guide/nodejs-api#getformatter)
``` javascript
eslintPlugin({
formatter: "compact"
});
```### `options`
You can also provide [eslint](http://eslint.org) specific options.
> List of [eslint options](http://eslint.org/docs/developer-guide/nodejs-api#cliengine).
``` javascript
eslintPlugin({
options: {
useEslintrc: false
}
})
```## License
Licensed under MIT