@bit/loader-eslint
v1.3.1
Published
eslint plugin for bit-loader
Downloads
15
Maintainers
Readme
bit-loader-eslint
eslint plugin for bit-loader to lint your JavaScript assets.
Install
$ npm install --save @bit/loader-eslint
bit-bundler
Sample configuration for bit-bundler
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.
eslintPlugin({
exitOnError: true
});
formatter
You can specify an eslint formatter:
Other formatters are available here
eslintPlugin({
formatter: "compact"
});
options
You can also provide eslint specific options.
List of eslint options.
eslintPlugin({
options: {
useEslintrc: false
}
})
License
Licensed under MIT