npm.io
1.1.3 • Published 9 years ago

bit-eslint

Licence
MIT
Version
1.1.3
Deps
1
Vulns
0
Weekly
0
Stars
1
DeprecatedThis package is deprecated

bit-eslint

eslint plugin for bit-loader to lint your JavaScript assets.

Install

$ npm install --save bit-eslint

bit-bundler

Sample configuration for bit-bundler

var Bitbundler = require("bit-bundler");
var jsPlugin = require("bit-loader-js");
var eslintPlugin = require("bit-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

Keywords