New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
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
  • npm
  • Socket score

Version published
Weekly downloads
16
increased by100%
Maintainers
2
Weekly downloads
 
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

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc