Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including gulp-xo with all npm packages installed. Try it out:

require("gulp/package.json"); // gulp is a peer dependency. var gulpXo = require("gulp-xo")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

gulp-xo v0.25.0

Validate files with XO

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.


$ npm install --save-dev gulp-xo


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

exports.default = () => (




Type: object

Any additional options to the below are passed directly to XO. However, you should prefer setting your XO config in package.json so editors and other tools can also read it. Only pass them here if you want to use options different from those of your current project. You might want to do this if your Gulp task lints or builds files that are/will be part of a separate project.


Type: boolean

This option instructs ESLint to try to fix as many issues as possible. The fixes are applied to the gulp stream. The fixed content can be saved to file using gulp.dest (See example/fix.js). Rules that are fixable can be found in ESLint's rules list.

When fixes are applied, a "fixed" property is set to true on the fixed file's ESLint result.


Type: boolean
Default: false

Report errors only.

xo.format(formatter, output)



xo.formatEach(formatter, output)




  • gulp-eslint - Gulp plugin for ESLint
  • gulp-reporter - Error reporter for CSSLint, EditorConfig, ESLint, HTMLHint, PostCSS, TSLint, XO


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free