Validate files with XO
Issues regarding rules should be reported on the ESLint issue tracker as it's the actual linter.
$ npm install --save-dev gulp-xo
const gulp = require('gulp');
const xo = require('gulp-xo');
gulp.task('default', () =>
gulp.src('src/app.js')
.pipe(xo())
.pipe(gulp.dest('dist'))
);
XO options can be specified in package.json.
In the gulpfile you can specify the following options:
Type: string
Default: eslint-formatter-pretty
Any ESLint reporter.
Type: boolean
Default: false
Report errors only.
MIT © Sindre Sorhus