grunt-xo v0.23.0
Deprecated. Just use the XO CLI directly.
grunt-xo
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.
Install
$ npm install --save-dev grunt-xo
Usage
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']);
Options
XO options can be specified in package.json.
In the Gruntfile you can specify the following options:
reporter
Type: string
\
Default: 'eslint-formatter-pretty'
Any ESLint reporter.
outputFile
Type: string
Output the report to a file.
quiet
Type: boolean
\
Default: false
Report errors only.
2 years ago
5 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago