Socket
Book a DemoInstallSign in
Socket

grunt-xo

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-xo

Validate files with XO

0.23.0
latest
Source
npmnpm
Version published
Maintainers
2
Created
Source

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.

Keywords

gruntplugin

FAQs

Package last updated on 01 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.