Skip to content

Latest commit

 

History

History
58 lines (33 loc) · 1.12 KB

readme.md

File metadata and controls

58 lines (33 loc) · 1.12 KB

gulp-xo Build Status

Validate files with XO

Issues regarding rules should be reported on the ESLint issue tracker as it's the actual linter.

Install

$ npm install --save-dev gulp-xo

Usage

const gulp = require('gulp');
const xo = require('gulp-xo');

gulp.task('default', () =>
	gulp.src('src/app.js')
		.pipe(xo())
		.pipe(gulp.dest('dist'))
);

API

xo([options])

options

XO options can be specified in package.json.

In the gulpfile you can specify the following options:

reporter

Type: string
Default: eslint-formatter-pretty

Any ESLint reporter.

quiet

Type: boolean
Default: false

Report errors only.

License

MIT © Sindre Sorhus