Deprecated. Just use the XO CLI directly.
Validate files with XO
Please consider if you really need Grunt for this. Using a npm run script would be better.
Issues regarding rules should be reported on the ESLint issue tracker as it's the actual linter.
$ npm install --save-dev grunt-xo
require('load-grunt-tasks')(grunt); // npm install --save-dev load-grunt-tasks
grunt.initConfig({
xo: {
options: {
quiet: true
},
target: ['file.js']
}
});
grunt.registerTask('default', ['xo']);
XO options can be specified in package.json.
In the Gruntfile you can specify the following options:
Type: string
Default: 'eslint-formatter-pretty'
Any ESLint reporter.
Type: string
Output the report to a file.
Type: boolean
Default: false
Report errors only.