eslint-bamboo-formatter
Version:
A reporter for eslint which produces a report compatible with Atlassian Bamboo Mocha Test Parser.
41 lines (27 loc) • 1.43 kB
Markdown
[](https://www.npmjs.org/package/eslint-bamboo-formatter)
[](https://www.npmjs.org/package/eslint-bamboo-formatter)
[](https://david-dm.org/voidberg/eslint-bamboo-formatter)
> A reporter for eslint which produces a report compatible with Atlassian Bamboo Mocha Test Parser.
```sh
npm install eslint-bamboo-formatter
```
```sh
eslint file.js -f node_modules/eslint-bamboo-formatter/reporter.js
```
```js
var eslint = require('gulp-eslint');
var reporter = require('eslint-bamboo-formatter');
gulp.src(['js/**/*.js'])
.pipe(eslint())
.pipe(eslint.format(reporter));
```
By default, the reporter writes to `eslint.json`. The file name can be changed by setting the `ESLINT_FILE` environment variable.
Warnings are not reported by default. If you want to report warnings as errors, set the environment variable `ESLINT_WARNING_AS_ERROR`.
[](https://github.com/voidberg/eslint-bamboo-formatter/blob/master/LICENSE)