0.23.0 • Published 6 months ago

grunt-xo v0.23.0

Weekly downloads
42
License
MIT
Repository
github
Last release
6 months ago

Deprecated. Just use the XO CLI directly.


grunt-xo

Validate files with XO

npm.io

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.

0.23.0

6 months ago

0.22.0

4 years ago

0.21.0

5 years ago

0.20.0

6 years ago

0.19.0

6 years ago

0.18.0

6 years ago

0.17.0

6 years ago

0.16.0

7 years ago

0.15.0

8 years ago

0.14.0

8 years ago

0.13.0

8 years ago

0.12.0

8 years ago

0.11.0

8 years ago

0.10.0

8 years ago

0.9.0

8 years ago

0.8.0

8 years ago

0.7.1

9 years ago

0.7.0

9 years ago

0.6.0

9 years ago

0.5.0

9 years ago

0.4.0

9 years ago

0.3.0

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago